diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2022-03-10 23:30:15 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2022-03-30 23:08:08 +0200 |
commit | 3afa0946239b31bf0487bb972e701cc85942445d (patch) | |
tree | 6804f4b5ac994d84b99962afef4235fb1dc57121 /lib/zlib/inffast.h | |
parent | 589beda5d919037310793d9751c7be8e3d0521a1 (diff) |
Fix: guard against potential overflow in file size calculation
The block_count is a size_t, so on 32 bit platforms the multiplication
might be truncated before the comparison with filesz.
On 64 bit platforms, it could potentially also overflow the 64 bit
bounds of the data type.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/zlib/inffast.h')
0 files changed, 0 insertions, 0 deletions