Skip to content

Conversation

erik-krogh
Copy link
Contributor

@erik-krogh erik-krogh commented Sep 13, 2023

Same as #14211, but targeting rc/3.11.

The codePointAt call 2 lines down was crashing with an index-of-out-bounds.
This adds a simple range-check to prevent that.

DCA run in progress: https://github.com/github/codeql-dca-main/issues/16057
I'll only merge once that looks good.

@erik-krogh erik-krogh requested a review from a team as a code owner September 13, 2023 19:54
@github-actions github-actions bot added the JS label Sep 13, 2023
@erik-krogh erik-krogh changed the title JS: Using out of bounds hotfix JS: fix out of bounds string access in isUsingDecl Sep 13, 2023
@erik-krogh
Copy link
Contributor Author

@erik-krogh erik-krogh merged commit b019fb3 into github:rc/3.11 Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants