-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vm/service] Fix JSON array parsing bug that causes seg fault
Changed the definition of `end` to point 1 past the end of the element, rather than the end of the element, which avoids the need for buggy look-ahead style lookups. I think this must have been a long standing bug, and we just never sent empty JSON arrays to the service until now, because I didn't change this logic when I refactored it. Bug: #53990 Fixes: #53990 Change-Id: I89ece7a036d0b71610a153e708f40aeabab5367c TEST=Added Service_ParseJSONArray Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/335980 Commit-Queue: Liam Appelbe <liama@google.com> Auto-Submit: Liam Appelbe <liama@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com>
- Loading branch information
1 parent
0f924ef
commit 0a20707
Showing
3 changed files
with
89 additions
and
11 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
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