Skip to content
Commit d8f49e6a authored by François Degros's avatar François Degros Committed by Copybara-Service
Browse files

[zip] Check CRC

ZipReader's Extract* methods check the file CRC, and report any error
accordingly.

Added tests:
ZipReaderTest.WrongCrc
ZipReaderTest.ExtractToFileAsync_WrongCrc

BUG=chromium:1296826
TEST=autoninja -C out/Default zlib_unittests && out/Default/zlib_unittests

Change-Id: Id3b253141601d14b55f4cbdfb4b0e0e35df7dbc3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3458662


Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: François Degros <fdegros@chromium.org>
Cr-Commit-Position: refs/heads/main@{#970364}
NOKEYCHECK=True
GitOrigin-RevId: 07568a33cc5475e7cf5e36c807e1b18fe586eb4f
parent e798a8d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment