forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Summary: 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 facebookincubator#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. Differential Revision: D69473523
- Loading branch information
1 parent
04bfdff
commit d8ab959
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