]> The Tcpdump Group git mirrors - tcpdump/commit
Make sure we don't set the snapend before the beginning of the packet.
authorGuy Harris <[email protected]>
Tue, 29 Mar 2022 07:51:21 +0000 (00:51 -0700)
committerGuy Harris <[email protected]>
Tue, 29 Mar 2022 07:51:21 +0000 (00:51 -0700)
commitbe43281053727d9a32c479813fd0ec79bdaf2dda
treee054f7f33cd3a898f5610800015c24fb276e9bcc
parent518e1bf60b5a72f29593e00a535f0a563d5d077b
Make sure we don't set the snapend before the beginning of the packet.

If a caller attempts to set it after the current snapend, just silently
ignore the attempt.

If they try to set it before the beginning of the packet, report it as a
bug and quit dissection.  Add a new setjmp() return value meaning "bug"
rather than "truncated packet", add an "nd_bug_longjmp()" routine for
reporting bugs where we should quit dissecting, and use that in this
case.
netdissect.c
netdissect.h
print.c