Add recursion limit to folly::parseJson.
authorKyle Nekritz <knekritz@fb.com>
Wed, 27 Apr 2016 16:42:56 +0000 (09:42 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Wed, 27 Apr 2016 16:50:29 +0000 (09:50 -0700)
commit9383e1ca4f3370181dec02ce2e270e35afc3e1a8
tree8c0a347c6f3713c3ee9e6dcbc50f76d18c90c988
parenta503da60529b27e9e02b4b62b812fa1d5e373b87
Add recursion limit to folly::parseJson.

Summary: Without this, malicious inputs can crash anything using folly::parseJson.

Reviewed By: yfeldblum

Differential Revision: D3219036

fb-gh-sync-id: 3604a060170c0201473c420035b21b018383789c
fbshipit-source-id: 3604a060170c0201473c420035b21b018383789c
folly/json.cpp
folly/json.h
folly/test/JsonTest.cpp