HomePhabricator

Fix a possible segfault when parsing JSON containing very large strings

Description

Fix a possible segfault when parsing JSON containing very large strings

Summary: Taken from https://github.com/Seldaek/jsonlint/commit/a3844d460bbbbcfa69550a98c675ea6358253451.

Test Plan: Ported the test case from https://github.com/Seldaek/jsonlint/issues/25.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11323

Details

Provenance
joshuaspenceAuthored on
joshuaspencePushed on Jan 11 2015, 7:40 PM
Reviewer
Blessed Reviewers
Differential Revision
D11323: Fix a possible segfault when parsing JSON containing very large strings
Parents
rPHUa95dd1c1db5f: Add an `xhpast_version` function
Branches
Unknown
Tags
Unknown