Thread (6 messages) 6 messages, 3 authors, 2013-02-27

Re: [PATCH] net: af_packet: Validate parameter size for PACKET_HDRLEN control message

From: David Miller <davem@davemloft.net>
Date: 2013-02-27 20:19:31

The first thing this function does is test whether len < 0, therefore
your change is unnecessary.

If the user gives us something between 0 and sizeof(int), that's
their problem, and they'll get a partial int copied back into
userspace as a result instead of the complete integer.

Please don't blindly silence warnings like this, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help