1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/security/clamav
Renato Botelho 7a52343a4c Fix a mmap() error scanning PDF files, as described on clamav's git repo commit
log:

off_t is 64-bit, size_t is still 32-bit and that causes unexpected integer
promotion here:
map_off = map->len - 2048

First the unsigned subtraction is performed, and then the unsigned (!) value
is sign-extended to 64-bit. Hence a negative value becomes positive, which is
wrong.

Reported by:	Franz Schwartau <franz@electromail.org>
Obtained from:	https://wwws.clamav.net/bugzilla/show_bug.cgi?id=2300
2010-09-28 17:27:49 +00:00
..
files Fix a mmap() error scanning PDF files, as described on clamav's git repo commit 2010-09-28 17:27:49 +00:00
distinfo Update to 0.96.3 2010-09-20 17:54:22 +00:00
Makefile Fix a mmap() error scanning PDF files, as described on clamav's git repo commit 2010-09-28 17:27:49 +00:00
pkg-descr
pkg-plist