]> The Tcpdump Group git mirrors - tcpdump/commit
CVE-2016-7993/Clean up relative time stamp printing.
authorGuy Harris <[email protected]>
Sat, 8 Aug 2015 19:53:36 +0000 (12:53 -0700)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 18 Jan 2017 08:16:38 +0000 (09:16 +0100)
commitd07e352f5a8a9cbf7e8f3ed49a316ed906353fd8
treeb79e4a1f05ba8375e4c426aff2ae1448983aa0f3
parent7bf069c2517690262aacbddc437731af991b31a7
CVE-2016-7993/Clean up relative time stamp printing.

Have separate routines for signed and unsigned relative time stamps.
Have the routine for signed time stamps handle the case of -2^31, where
you can't negate it and have the result fit in a 32-bit signed integer.

There are currently no users of the signed relative time stamp routine,
but it's there in case anybody needs it (and is passing 32-bit
quantitites, so that there's a risk that a packet might contain -2^31 as
the time stamp).

Fixes an array overflow found with American Fuzzy Lop by Hanno Böck.
netdissect.h
print-domain.c
print-dvmrp.c
print-hsrp.c
print-igmp.c
print-lwres.c
print-pim.c
util-print.c