Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

activity_id index out of bounds check #1163

Merged
merged 1 commit into from
Nov 23, 2022
Merged

activity_id index out of bounds check #1163

merged 1 commit into from
Nov 23, 2022

Conversation

fhboswell
Copy link
Contributor

@fhboswell fhboswell commented Nov 23, 2022

Description

One Line Summary

After further testing with Nan, we decided that the index out of bounds check should read <= rather than <.
It is unreachable because the code will only be running if there is a slash after apps apps/ and therefore the path components array will contain something after apps even if it is an empty string. However I believe this change will be helpful to avoid future mistakes.


This change is Reviewable

Copy link
Contributor

@nan-li nan-li left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@jkasten2 jkasten2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @fhboswell)

@fhboswell fhboswell merged commit f5e74a6 into main Nov 23, 2022
@fhboswell fhboswell deleted the activity_id-check branch November 23, 2022 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants