-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
config: throw when json is invalid #1123
Conversation
Since this can happen, do we have coverage of all of the ways this can happen? |
I'm not sure of all the ways it can happen or how to manipulate the parser to hit some of these states. Which state the parser decides to proceed to when something outside of the JSON specification is passed to it is a mystery to me. |
My opinion is to fix the crash that now has coverage and leave the others to just crash. We can fix them as cases are brought to our attention. But I don't feel that strongly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, thanks.
Automatic merge from submit-queue. [DO NOT MERGE] Auto PR to update dependencies of proxy This PR will be merged automatically once checks are successful. ```release-note none ```
Updating to pull in #13074 which will use Apple's DNS resolver for iOS in order to allow Envoy Mobile to ship on iOS 14 without triggering the "local area network" modal. Signed-off-by: Michael Rebello <me@michaelrebello.com> Signed-off-by: JP Simard <jp@jpsim.com>
Updating to pull in #13074 which will use Apple's DNS resolver for iOS in order to allow Envoy Mobile to ship on iOS 14 without triggering the "local area network" modal. Signed-off-by: Michael Rebello <me@michaelrebello.com> Signed-off-by: JP Simard <jp@jpsim.com>
In certain scenarios where invalid JSON is passed, we would hit
NOT_REACHED
. This changes the behavior to passfalse
back to the parser. This will cause the parser to stop and throw an error message with offset and line number.