Files
linux/net
Vasiliy Kulikov dda0b38692 net: ipv4: tcp_probe: cleanup snprintf() use
snprintf() returns number of bytes that were copied if there is no overflow.
This code uses return value as number of copied bytes.  Theoretically format
string '%lu.%09lu %pI4:%u %pI4:%u %d %#x %#x %u %u %u %u\n' may be expanded
up to 163 bytes.  In reality tv.tv_sec is just few bytes instead of 20, 2 ports
are just 5 bytes each instead of 10, length is 5 bytes instead of 10.  The rest
is an unstrusted input.  Theoretically if tv_sec is big then copy_to_user() would
overflow tbuf.

tbuf was increased to fit in 163 bytes.  snprintf() is used to follow return
value semantic.

Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-11-17 12:27:46 -08:00
..
2010-10-25 13:09:44 -07:00
2010-11-12 14:07:14 -08:00
…
…
2010-10-21 15:44:13 +02:00
…
…
…
2010-11-15 13:24:06 -05:00
…
2010-11-10 12:12:00 -08:00
2010-10-29 04:16:28 -04:00
2010-11-08 13:50:09 -08:00
2010-10-21 03:09:46 -07:00
2010-10-15 15:53:27 +02:00
2010-11-12 13:27:25 -08:00
…