iproute2/misc
Mike Saal 4fcfb6bc71 ss format bug
Hi:

I found a formatting bug in the 4.1.1 ss command. The following line was
incorrectly output due to passing a negative length to printf() when
displaying the local address. In this instance hostapd does a "bind to
device" on cdreth0 and then does a udp "in address any" port 67 bind.
Please note the whitespace between the '*' and ' %cdreth0:67'

    'udp UNCONN 0 0 ** %cdreth0:67* *:* users:(("hostapd",pid=19241,fd=5))'

Attached is my patch for the bug fix, it might be prudent to add more
guard code looking for negative length format codes.

Sincerely, Mike
2015-09-09 08:17:42 -07:00
..
.gitignore Add ignore files to make using git easier 2006-08-08 12:04:38 -07:00
Makefile provide common json output formatter 2015-08-23 10:05:29 -07:00
arpd.c whitespace cleanup 2014-12-20 15:47:17 -08:00
ifstat.c provide common json output formatter 2015-08-23 10:05:29 -07:00
lnstat.c provide common json output formatter 2015-08-23 10:05:29 -07:00
lnstat.h iproute2: various header include fixes for compiling with musl libc 2014-05-28 16:51:39 -07:00
lnstat_util.c remove unnecessary checks for NULL before free 2015-07-21 10:49:54 -07:00
nstat.c provide common json output formatter 2015-08-23 10:05:29 -07:00
rtacct.c ip: make local functions static 2013-02-12 11:38:35 -08:00
ss.c ss format bug 2015-09-09 08:17:42 -07:00
ssfilter.h ss: Allow to specify sport/dport without ':' 2015-03-15 12:11:42 -07:00
ssfilter.y ss: Allow to specify sport/dport without ':' 2015-03-15 12:11:42 -07:00