freebsd-dev/contrib
Pedro F. Giffuni 4a7f186ea6 MFV r277981:
Upstream fixes for issues found with afl (Issue #417).

- Fix length checking.

Check both the captured length and the on-the-wire length (the latter
*should* be greater than or equal to the former, but that's not
guaranteed).

Add some additional length checks, so neither caplen nor length
underflow.

If we stop dissecting because the packet is too short, return 1, not 0,
as we've "dissected" what we can; 0 means "this is LLC+SNAP with an OUI
of 0 and an unknown Ethertype".

commit:	743bcecdc92f88b118ec7aac4f68b606601205cc

- Clean up length checks.

Check only the amount of length that matters at any given point; yes,
this means we do multiple checks, but so it goes.

We don't need to check for LLC+SNAP - llc_print() does that for us.  We
do, however, need to check to make sure we can safely skip the Fore
header.

commit:	5c65e7532fa16308e01299988852b0dc5b027559
2015-01-31 16:34:39 +00:00
..
amd MFV r277870 2015-01-29 15:35:55 +00:00
apr Merge apr-1.4.8 -> apr-1.5.1 and update. 2014-05-27 07:15:14 +00:00
apr-util Merge apr-util 1.5.3 -> 1.5.4. A minor bug fix update. 2014-09-24 18:38:51 +00:00
atf MFV: Import atf-0.21. 2014-11-01 11:17:54 +00:00
binutils Add pregenerated documentation for as(1) and ld(1) 2015-01-04 00:58:30 +00:00
bmake Update to bmake-20140620 2014-07-08 22:27:50 +00:00
bsnmp Fix the function signatures when MK_CRYPT == no for snmp_get_local_keys and 2014-12-27 20:58:01 +00:00
byacc Regen test cases for yacc(1) after r274460. YYINT is int now. 2014-11-13 17:54:17 +00:00
bzip2 Remove unknown macro 2014-12-26 07:36:42 +00:00
com_err
compiler-rt Remove the <netinet/ip_compat.h> include from one of the newly added 2015-01-14 22:37:11 +00:00
dialog Update dialog to 1.2-20130923. 2013-09-24 14:52:43 +00:00
diff Fix a cut and paste error. 2014-01-05 23:28:03 +00:00
dma Fix build on i386 2014-02-21 16:14:40 +00:00
dtc Merge from vendor branch importing dtc git rev 6a15eb2350426d285130e4c9d84c0bdb6575547a 2014-01-27 19:37:35 +00:00
ee Fix minor syntax and grammar errors in the markup of the ee(1) man page 2015-01-18 17:25:41 +00:00
elftoolchain Preserve hard & symbolic links when modifying source file 2015-01-28 18:37:09 +00:00
expat
file MFV r276568: 2015-01-02 21:20:02 +00:00
flex
gcc Allow -march=armv7a on the gcc command line, for compatibility with clang. 2014-12-21 23:45:13 +00:00
gcclibs Avoid "cc1: warning: is shorter than expected" when using GNU cpp in 2014-03-26 19:57:50 +00:00
gdb MFV r277658: 2015-01-24 21:05:18 +00:00
gdtoa
gperf gperf: reverse size_type patch from r258115. 2014-01-07 01:40:49 +00:00
groff Pull up vendor changes up to 2014-01-29 2014-01-31 12:26:30 +00:00
hyperv/tools Test errno against EEXIST as well. 2014-11-11 16:49:33 +00:00
ipfilter #552 destination port not zero after parsing nat rule 2014-09-22 16:35:48 +00:00
jemalloc Fix known issues which blow up the process after dlopen("libthr.so") 2015-01-03 18:38:46 +00:00
ldns Don't cast away the const qualifier. Fixes gcc build. 2014-05-16 15:32:16 +00:00
ldns-host Import Magerya Vitaly's ldns-host, and build it instead of the BIND version 2013-09-08 19:40:32 +00:00
less
libarchive Fix the following -Werror warning from clang 3.5.0, while building 2014-11-22 12:10:09 +00:00
libbegemot
libc-pwcache
libc-vis Merge from NetBSD: 2014-09-08 19:26:21 +00:00
libc++ Import libc++ trunk r224926. This fixes a number of bugs, completes 2015-01-15 21:17:36 +00:00
libcxxrt Partially revert r273382, to reduce diffs against upstream. This was a 2015-01-30 18:26:38 +00:00
libexecinfo libexecinfo: Include terminating null in byte count 2013-11-21 14:12:36 +00:00
libgnuregex
libpcap MFV r276759: libpcap 1.6.2. 2015-01-06 22:29:12 +00:00
libreadline Quiesce warning about unused argument in call to rl_message() by wrapping 2013-11-04 16:52:27 +00:00
libstdc++ Fix EABI unwind function declarations to match the function definitions. 2014-07-22 20:32:24 +00:00
libucl Update libucl to latest version 2014-11-29 00:45:09 +00:00
libxo Upgrade libxo to 0.2.0. 2015-01-19 02:22:03 +00:00
llvm Add llvm and clang patches corresponding to r277774 and r277775. 2015-01-26 21:24:04 +00:00
mdocml Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mknod
mtree Import in latest mtree from NetBSD to fix a bug in parsing group files 2014-10-28 17:52:26 +00:00
ncurses Workaround a GCC warning to unbreak ARM build. 2014-03-03 08:01:36 +00:00
netbsd-tests Revert r277357 as expr has been enhanced to better detect overflow conditions, 2015-01-28 11:38:12 +00:00
netcat MFV r273617: netcat from OpenBSD 5.6. 2014-10-25 00:37:35 +00:00
ngatm
ntp ntpd tries to bind to IPv6 interfaces in 'tentative' state and fails as IPv6 is 2015-01-14 23:34:00 +00:00
nvi Vendor import nvi-2.1.2-c80f493b038 a multikey mapping fix 2013-12-08 00:08:03 +00:00
ofed Don't call abort on usage errors; print out the usage message instead 2015-01-16 21:12:36 +00:00
one-true-awk awk: Use random(3) instead of rand(3) 2014-09-19 18:24:02 +00:00
openbsm Fix descriptors leak. 2014-09-14 09:26:33 +00:00
openpam Staticize the test plans. 2014-11-05 20:13:18 +00:00
openresolv
opie Last '/' for program name, not first one 2014-08-11 14:46:09 +00:00
pam_modules/pam_passwdqc Make the PAM password strength checking module WARNS=2 safe. 2013-08-27 15:50:26 +00:00
pf Update NetBSD Foundation copyrights to 2-clause BSD 2014-03-18 01:40:25 +00:00
pjdfstest Increase the memory disk size in the following testcases to avoid mount 2014-09-24 22:51:16 +00:00
pnpinfo
sendmail Remove build specific details from sendmail.cf/submit.cf in support of 2015-01-27 04:06:47 +00:00
serf Update serf-1.3.6 -> 1.3.7 2014-08-11 19:41:01 +00:00
smbfs Make it possible to use empty user name ("-U ''") for mount_smbfs(8). 2014-09-08 11:01:57 +00:00
sqlite3 Update sqlite3 to 3.8.7.2 2014-11-22 19:18:08 +00:00
subversion Sync the svn template with the one from ports 2014-12-02 00:23:26 +00:00
tcp_wrappers tcpd.h: add prototype for hosts_ctl 2014-10-11 18:54:37 +00:00
tcpdump MFV r277981: 2015-01-31 16:34:39 +00:00
tcsh
telnet Add baud rate support to telnet(1) 2014-11-11 04:06:05 +00:00
tnftp [SA-14:25] Fix kernel stack disclosure in setlogin(2) / getlogin(2). 2014-11-04 23:29:29 +00:00
top - Add J command to help. 2014-05-02 23:47:14 +00:00
traceroute
tzcode Revert WiP to contrib/tzcode accidentally committed with r274364 2014-11-11 04:07:41 +00:00
tzdata MFV of 274557,tzdata{2014j} 2014-11-16 01:00:39 +00:00
unbound MFV (r277045): merge upstream version of the local socket patch. 2015-01-12 09:46:49 +00:00
unvis
vis Import NetBSD vis(1) mandoc fixes 2015-01-03 23:16:13 +00:00
wpa convert to using pidfile... This prevents multiple wpa_supplicants 2014-06-22 10:00:33 +00:00
xz Install the liblzma pkg-config file 2015-01-10 00:11:10 +00:00