netstat: increase address buffers to avoid and overflow
We use scanf %64[...] to get local addresses, but then we store the result
into a char[64] buffer. Since scanf always writes a terminating NUL, we
overflow the buffer by a single byte. Use a buffer of 128 bytes to match
the style of other funcs in this file.
Reported-by:
Maxim Ostapenko <m.ostapenko@partner.samsung.com>
Showing
Please register or sign in to comment