]> The Tcpdump Group git mirrors - libpcap/commit
Clean up signed vs. unsigned, do more error checking in the parser.
authorGuy Harris <[email protected]>
Thu, 22 Nov 2018 21:24:48 +0000 (13:24 -0800)
committerGuy Harris <[email protected]>
Thu, 22 Nov 2018 21:24:48 +0000 (13:24 -0800)
commit81d760fecaec22d89d8cdad54d605ec8f25be143
treef93bec544d0c9da44d8bacf97a67933f10c7161e
parent8b40ffd344971073013aabe3c9c4a2db47ca7b43
Clean up signed vs. unsigned, do more error checking in the parser.

Numbers in filter expressions are unsigned; use bpf_u_int32 for them.
Use u_int for offsets and sizes that don't come from numbers in the
filter.

Have the scanner routine that parses numbers check for overflow and
report an error.

Make some routines not used outside gencode.c static.

Expand some error messages to include more details.

For 802.11 type and subtype tests with a numeric argument, make sure
we're not testing bits outside the type and subtype fields.

Credit to OSS-Fuzz for finding an integer overflow issue that the error
checking, and use of unsigned values, addresses.
gencode.c
gencode.h
grammar.y
optimize.c
scanner.l