Ensure we protect against stack overflow in JSONWriter
When importing bookmarks from an html file with a deep folder structure (>10k) we hit a stack overflow due to the recursive calls in JSONWriter. Fix is to check we do not exceed a max depth similar to JSONReader. Bug: 1007626,355722 Change-Id: Iedd9d543b7168a08af1a325059860d79d4900661 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1823809 Commit-Queue: Chris Davis <chrdavis@microsoft.com> Reviewed-by:Gabriel Charette <gab@chromium.org> Reviewed-by:
Robert Sesek <rsesek@chromium.org> Reviewed-by:
Bruce Dawson <brucedawson@chromium.org> Cr-Commit-Position: refs/heads/master@{#703999}
Showing
base/json/json_common.h
0 → 100644
Please register or sign in to comment