]> The Tcpdump Group git mirrors - tcpdump/commit
IEEE 802.15.4: Fix two loops for undefined behavior at runtime
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 25 Mar 2019 21:10:19 +0000 (22:10 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 25 Mar 2019 21:19:14 +0000 (22:19 +0100)
commit3d349d355820f9f27d4d0fcd6534e865f5dda99c
tree8868648013f2425388f0724966a07080913c10d5
parent10dd76aef1d2b2b6563bc0f3ef066c76461c84d0
IEEE 802.15.4: Fix two loops for undefined behavior at runtime

The errors were:
print-802_15_4.c:433:17: runtime error: unsigned integer overflow: 0 - 1
cannot be represented in type 'u_int' (aka 'unsigned int')
print-802_15_4.c:483:17: runtime error: unsigned integer overflow: 0 - 1
cannot be represented in type 'u_int' (aka 'unsigned int')
print-802_15_4.c