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
F18785695: D11323.id27194.diff
Tue, Oct 14, 9:56 AM
F18781493: D11323.diff
Sun, Oct 12, 10:44 PM
F18777252: D11323.id27194.diff
Sat, Oct 11, 1:35 AM
F18777180: D11323.id27209.diff
Sat, Oct 11, 1:14 AM
F18777048: D11323.id.diff
Sat, Oct 11, 12:44 AM
F18746467: D11323.id27209.diff
Fri, Oct 3, 12:31 PM
F18676397: D11323.id27209.diff
Sep 25 2025, 7:18 PM
F18644489: D11323.diff
Sep 19 2025, 5:29 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.