tcpdump/tests/ppp-invalid-lengths.pcap
Francois-Xavier Le Bail d6ca6f1111 PPP: Fix two loops for undefined behavior at runtime
The errors were:
print-ppp.c:518:9: runtime error: unsigned integer overflow: 38 - 230
cannot be represented in type 'unsigned int'
print-ppp.c:1138:63: runtime error: unsigned integer overflow: 204 - 220
cannot be represented in type 'unsigned int'

Add a test case.
2019-03-18 23:04:07 +01:00

8.8 KiB