[web_engine] Cap the number of bytes used for content type sniffing.
The MIME sniffing code used by the Content Directory loading system has DCHECKs which prevent it from reading the contents of files larger than 1MB. Sniffing is now limited to the first 10KB of the file. Bug: 1018436 Change-Id: I0b6293ef08ebe7cd2bab30fb57ffd481819cf85e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1879684 Commit-Queue: Kevin Marshall <kmarshall@chromium.org> Reviewed-by:David Dorwin <ddorwin@chromium.org> Cr-Commit-Position: refs/heads/master@{#710943}
Showing
Please register or sign in to comment