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

Fix crash in JS CG construction for malformed calls to new Function #1243

Merged
merged 3 commits into from
Feb 23, 2023

Conversation

msridhar
Copy link
Member

Our code for handling new Function(...) calls tries to parse and analyze the body argument to the call if it is a string constant. But, when that argument is malformed, previously we would crash. This PR adds a null check to make WALA's behavior more robust for that case.

@msridhar msridhar merged commit c46413c into wala:master Feb 23, 2023
@msridhar msridhar deleted the fix-field-based-crash branch February 23, 2023 01:34
@liblit liblit added the bug label Feb 23, 2023
MadhuNimmo pushed a commit to MadhuNimmo/WALA that referenced this pull request Jul 10, 2023
…ala#1243)

Our code for handling `new Function(...)` calls tries to parse and analyze the body argument to the call if it is a string constant.  But, when that argument is malformed, previously we would crash.  This PR adds a null check to make WALA's behavior more robust for that case.
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.

None yet

2 participants