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
F15470893: D11323.id27194.diff
Sat, Apr 5, 1:59 AM
F15460653: D11323.id.diff
Tue, Apr 1, 12:53 AM
F15428035: D11323.id.diff
Sun, Mar 23, 6:08 PM
F15424279: D11323.id27209.diff
Sat, Mar 22, 9:15 PM
F15422559: D11323.id27194.diff
Sat, Mar 22, 9:21 AM
F15413472: D11323.id27194.diff
Wed, Mar 19, 7:01 PM
F15401442: D11323.diff
Mon, Mar 17, 5:45 PM
F15395851: D11323.diff
Mar 16 2025, 10:09 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.