zlib: Be more cautious about extracting files using symlinks.
There doesn't seem to be good reason to allow extracting archives with
paths like x/y/z where x or x/y is a symlink: if the symlink points
into the archive, x/y/z could have been resolved at archiving time, and
if x/y/z points outside the archive, we think it's too unsafe to
extract.
Fixed: 424162263
Change-Id: I84413fea2cbdc6f13abd4512b9585fcd6933e84d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6867010
Commit-Queue: Joshua Pawlicki <waffles@chromium.org>
Auto-Submit: Joshua Pawlicki <waffles@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1504489}
NOKEYCHECK=True
GitOrigin-RevId: c57f111ea19674436e68bb6b91a43988d4c50aaf
5 files changed