forked from libarchive/libarchive
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quickly reject tar entries > 2^60 bytes w/o risking overflow (libarch…
…ive#2263) In particular, this ensures that we cannot overflow rounding-up calculations. Recent tar changes put in a lot of sanity limits on the sizes of particular kinds of data, but the usual behavior in most cases was to skip over-large values. The skipping behavior required rounding-up and accumulating values that could potentially overflow 64-bit integers. This adds some coarser checks that fail more directly when an entry claims to be more than 1 exbibyte (2^60 bytes), avoiding any possibility of numeric overflow along these paths. OSS-Fuzz Issue: 70062
- Loading branch information
Showing
1 changed file
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters