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
F13274598: D11323.diff
Fri, May 31, 3:53 AM
F13259681: D11323.diff
Sun, May 26, 10:57 PM
F13244446: D11323.diff
Thu, May 23, 5:03 AM
F13229937: D11323.id27194.diff
Mon, May 20, 7:47 PM
F13217973: D11323.id27209.diff
Sat, May 18, 9:11 AM
F13200708: D11323.diff
Tue, May 14, 2:49 AM
F13182464: D11323.diff
Thu, May 9, 11:30 PM
Unknown Object (File)
Mon, May 6, 2:09 AM
Subscribers

Diff Detail

Repository
rPHU libphutil
Branch
master
Lint
Lint Errors
SeverityLocationCodeMessage
Errorsrc/parser/__tests__/json/base64.data:1TXT4File Does Not End in Newline
Warningsrc/parser/__tests__/json/base64.data:1TXT3Line Too Long
Warningsrc/parser/__tests__/json/base64.json:1TXT3Line Too Long
Unit
Tests Passed
Build Status
Buildable 3752
Build 3763: [Placeholder Plan] Wait for 30 Seconds

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.