Drivers may pass runt packets to filter. This is okay.
Reviewed by: gallatin
This commit is contained in:
parent
7b01d357a2
commit
f8b45306c6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=352311
@ -1448,7 +1448,10 @@ ipfw_chk(struct ip_fw_args *args)
|
|||||||
do { \
|
do { \
|
||||||
int x = (_len) + T + EHLEN; \
|
int x = (_len) + T + EHLEN; \
|
||||||
if (mem) { \
|
if (mem) { \
|
||||||
MPASS(pktlen >= x); \
|
if (__predict_false(pktlen < x)) { \
|
||||||
|
unlock; \
|
||||||
|
goto pullup_failed; \
|
||||||
|
} \
|
||||||
p = (char *)args->mem + (_len) + EHLEN; \
|
p = (char *)args->mem + (_len) + EHLEN; \
|
||||||
} else { \
|
} else { \
|
||||||
if (__predict_false((m)->m_len < x)) { \
|
if (__predict_false((m)->m_len < x)) { \
|
||||||
|
Loading…
Reference in New Issue
Block a user