Drivers may pass runt packets to filter. This is okay.

Reviewed by:	gallatin
This commit is contained in:
Gleb Smirnoff 2019-09-13 22:36:04 +00:00
parent 7b01d357a2
commit f8b45306c6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=352311

View File

@ -1448,7 +1448,10 @@ ipfw_chk(struct ip_fw_args *args)
do { \
int x = (_len) + T + EHLEN; \
if (mem) { \
MPASS(pktlen >= x); \
if (__predict_false(pktlen < x)) { \
unlock; \
goto pullup_failed; \
} \
p = (char *)args->mem + (_len) + EHLEN; \
} else { \
if (__predict_false((m)->m_len < x)) { \