summaryrefslogtreecommitdiff
path: root/pcap-rpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-11-22 13:24:48 -0800
committerGuy Harris <guy@alum.mit.edu>2018-11-22 13:24:48 -0800
commit81d760fecaec22d89d8cdad54d605ec8f25be143 (patch)
treef93bec544d0c9da44d8bacf97a67933f10c7161e /pcap-rpcap.c
parent8b40ffd344971073013aabe3c9c4a2db47ca7b43 (diff)
downloadlibpcap-81d760fecaec22d89d8cdad54d605ec8f25be143.tar.gz
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.
Diffstat (limited to 'pcap-rpcap.c')
0 files changed, 0 insertions, 0 deletions