]> The Tcpdump Group git mirrors - tcpdump/commit
IPX: Add a length check
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 11 Mar 2019 21:07:06 +0000 (22:07 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 11 Mar 2019 21:07:06 +0000 (22:07 +0100)
commita24cccfd4abcda51db9f73f46d425c7c1e357a87
tree4651143709cc1cd1f38e568e72b241744d64c95e
parent2f6c71013128c8fd03faf71f5d3b8727cd984352
IPX: Add a length check

This fix an undefined behavior at runtime.

The error was:
print-ipx.c:93:43: runtime error: unsigned integer overflow: 29 - 30
cannot be represented in type 'unsigned int'

Add a test case.
print-ipx.c
tests/TESTLIST
tests/ipx-invalid-length.out [new file with mode: 0644]
tests/ipx-invalid-length.pcap [new file with mode: 0644]