Thread (2 messages) flat view 2 messages, 2 authors, 2011-10-19

Re: [patch] filter: use unsigned int to silence static checker warning

From: David Miller <davem@davemloft.net>
Date: 2011-10-19 23:36:10
Also in: kernel-janitors

From: Dan Carpenter <redacted>
Date: Tue, 18 Oct 2011 10:04:20 +0300
This is just a cleanup.

My testing version of Smatch warns about this:
net/core/filter.c +380 check_load_and_stores(6)
	warn: check 'flen' for negative values

flen comes from the user.  We try to clamp the values here between 1
and BPF_MAXINSNS but the clamp doesn't work because it could be
negative.  This is a bug, but it's not exploitable.

Signed-off-by: Dan Carpenter <redacted>
Applied to net-next, thanks Dan.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help