Put an arbitrary max to # of extension content scripts.
If shared memory returns bad data, then UserScriptSet might end up allocating too much data. This might distract crash reports to think there was an OOM error. Set an arbitrary limit to number of scripts: roughly 1000 extensions * 100 scripts = 100000u. Also put |pickle_size| in crash stack to aid debugging crash reports. Bug: 723381 Change-Id: Idf96137f5f7adec87adbacd5a276253dc5f24842 Reviewed-on: https://chromium-review.googlesource.com/570987 Commit-Queue: Istiaque Ahmed <lazyboy@chromium.org> Reviewed-by:Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#486879}
Showing
Please register or sign in to comment