]> The Tcpdump Group git mirrors - tcpdump/commit
EAP: Fix some undefined behaviors at runtime
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 4 Nov 2021 21:56:37 +0000 (22:56 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 4 Nov 2021 21:58:40 +0000 (22:58 +0100)
commit58a4ab67fc75b62968634cddec290c1f2e2c1ded
tree1262b1af769d4b9b546a459a62bf618085731d4e
parent30df635e5dd51bd126bfa6e8af2886a5054f7378
EAP: Fix some undefined behaviors at runtime

The errors were like:
print-eap.c:179:25: runtime error: unsigned integer overflow:
  2 - 5 cannot be represented in type 'unsigned int'
print-eap.c:181:50: runtime error: unsigned integer overflow:
  2 - 5 cannot be represented in type 'unsigned int'
print-eap.c:186:25: runtime error: unsigned integer overflow:
  2 - 5 cannot be represented in type 'unsigned int'
print-eap.c:188:50: runtime error: unsigned integer overflow:
  2 - 5 cannot be represented in type 'unsigned int'
print-eap.c