]> The Tcpdump Group git mirrors - tcpdump/commit
nhrp: fix infinite loop on malformed packets.
authorGuy Harris <[email protected]>
Tue, 25 Apr 2023 20:37:56 +0000 (13:37 -0700)
committerGuy Harris <[email protected]>
Tue, 25 Apr 2023 20:37:56 +0000 (13:37 -0700)
commitf305b205c5678bfc675ba7f9578343f6ab204899
tree8bea828346c37bd797ce56c3fa6f0d5b97403e64
parent5c13f551fa9b08396f4b385c6b16447f718a518b
nhrp: fix infinite loop on malformed packets.

If a CIE doesn't fit in the remainder of the mandatory part, return the
length of that remainder, so that the loop processing the CIE
terminates.

Add capture that produced the infinite loop.
print-nhrp.c
tests/TESTLIST
tests/pb_nhrp_1.out [new file with mode: 0644]
tests/pb_nhrp_1.pcap [new file with mode: 0644]