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
F17884009: D11323.id27209.diff
Mon, Jul 28, 11:42 PM
F17837909: D11323.id.diff
Sat, Jul 26, 5:55 PM
Unknown Object (File)
Mon, Jul 7, 6:03 PM
Unknown Object (File)
Jun 27 2025, 2:37 AM
Unknown Object (File)
Jun 7 2025, 3:43 PM
Unknown Object (File)
Apr 27 2025, 1:16 AM
Unknown Object (File)
Apr 19 2025, 12:27 PM
Unknown Object (File)
Apr 5 2025, 1:59 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.