summaryrefslogtreecommitdiff
path: root/usr.bin/mail
diff options
context:
space:
mode:
authorGeorge Koehler <gkoehler@cvs.openbsd.org>2022-06-18 03:23:20 +0000
committerGeorge Koehler <gkoehler@cvs.openbsd.org>2022-06-18 03:23:20 +0000
commit05aab66b1469951129df969407d2d23809df8dd5 (patch)
treed0dc59d37ff07de3438e37320d9b6f4da6a0f5d3 /usr.bin/mail
parent64c0ca569b8e45312dcfb0eac26658b6505a95d2 (diff)
Fix gzip byte counts with 32-bit integers
If zlib is without our local change in lib/libz/zlib.h r1.7, then s->z_stream.total_in and s->z_stream.total_out might overflow on architectures where uLong has 32 bits. After overflow, the total would be 4G below the correct total. Calculate our own 64-bit totals. When decompressing, take (uLong)s->z_stream.total_in as a total modulo ULONG_MAX + 1. ok tb@
Diffstat (limited to 'usr.bin/mail')
0 files changed, 0 insertions, 0 deletions