-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: UserErrors leave json_parse in an invalid state (#12308)
Summary: Pull Request resolved: #12308 When json_parse throws a user error and it's not wrapped in a try, if that exception is caught outside expression evaluation and the ExprSet attempts to be reused, the json_parse function may be in an invalid state and will throw a runtime exception. This was exposed in ExpressionFuzzer after #12281 was landed. This fix is to clear the state whenever we see a UserException after calling parse whether or not the function is wrapped in a try. Reviewed By: kgpai Differential Revision: D69473523 fbshipit-source-id: d4ae34d65136ce80138f9ed2e7f6f86bf566011e
- Loading branch information
1 parent
5568518
commit b71648f
Showing
2 changed files
with
65 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters