]> The Tcpdump Group git mirrors - tcpdump/commit
CDP: Fix two loops for undefined behavior at runtime
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 17 Mar 2019 14:01:15 +0000 (15:01 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 17 Mar 2019 14:01:15 +0000 (15:01 +0100)
commit6c93708db1cd314ab4e6511596c625d617a15853
tree4e2de4f9ce3aa68b6abd99a7f00671f9f1cc43aa
parentd91fbd46e2ab1e7328db5c819564ab40373ce44a
CDP: Fix two loops for undefined behavior at runtime

The errors were:
print-cdp.c:363:13: runtime error: unsigned integer overflow: 0 - 1
cannot be represented in type 'u_int' (aka 'unsigned int')
print-cdp.c:375:13: runtime error: unsigned integer overflow: 0 - 1
cannot be represented in type 'u_int' (aka 'unsigned int')
print-cdp.c