Page MenuHomePhabricator

Fix a possible segfault when parsing JSON containing very large strings
ClosedPublic

Authored by joshuaspence on Jan 11 2015, 10:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 16, 2:01 PM
Unknown Object (File)
Thu, Mar 16, 2:01 PM
Unknown Object (File)
Thu, Mar 16, 1:56 PM
Unknown Object (File)
Wed, Mar 15, 10:21 PM
Unknown Object (File)
Sun, Mar 5, 3:19 PM
Unknown Object (File)
Sun, Feb 26, 8:41 PM
Unknown Object (File)
Thu, Feb 23, 11:39 AM
Unknown Object (File)
Feb 20 2023, 8:55 AM
Subscribers

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Fix a possible segfault when parsing JSON containing very large strings.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.

I think that even with (?:...) we can blow the stack -- see phutil_is_utf8_slowly() -- but the limits are high enough to be reasonable.

This revision is now accepted and ready to land.Jan 11 2015, 5:01 PM
This revision was automatically updated to reflect the committed changes.