[omnibox] Truncate |TemplateUrl::TryEncoding()| input to 1,000,000 chars
|TryEncoding()| invokes |base::UTF16ToCodepage()|, |net::EscapeQueryParamValue()|, and |net::EscapePath()|. All 3 create strings of 3 times the length of the input. This is suspected to be causing about 50 crashes per month. Invocations to |TryEncoding()| that have resulted in crashes have originated from different sources; e.g. omnibox & autocomplete, extensions, and on startup. This CL truncates the input string to 1,000,000 chars. Bug: 1137686 Change-Id: I16e997666c07611d24472bcbee99893138e9c5e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2559284 Commit-Queue: manuk hovanesian <manukh@chromium.org> Reviewed-by:Tommy Li <tommycli@chromium.org> Cr-Commit-Position: refs/heads/master@{#831913}
Showing
Please register or sign in to comment