diff options
author | Eric Andersen | 2003-07-28 06:37:04 +0000 |
---|---|---|
committer | Eric Andersen | 2003-07-28 06:37:04 +0000 |
commit | f96675bc50ec6b4a7a43866525bf575bf741ae73 (patch) | |
tree | 6ae2f7e9fb53942c022159ef233c3cce69650646 /networking/libiproute/ip_common.h | |
parent | 727f529211b68cdde88b724c2c1112acbc076bf2 (diff) | |
download | busybox-f96675bc50ec6b4a7a43866525bf575bf741ae73.zip busybox-f96675bc50ec6b4a7a43866525bf575bf741ae73.tar.gz |
James Petterson writes:
I've found a possible bug in libbb/interface.c, in function
if_readlist_proc(). This function calls get_name(), and passes
as an argument 'name', a buffer of 16 bytes (IFNAMSIZ). The
function get_name(), however, may use more than 16 bytes,
when it is searching for aliases. Even if you don't have an
alias interface, you can run into trouble if the interface
has received more than 99999999 bytes, in which case the
space between the interface name and the rx stats
disappears, as in the /proc/net/dev example below:
wan0.200:264573315 462080 ...
In this case get_name() correctly identifies the interface name
as "wan0.200", but to do that it uses 18 bytes of the 'name'
buffer, which could lead to an unpredictable error.
A simple solution would be to increase the size of the buffer:
Diffstat (limited to 'networking/libiproute/ip_common.h')
0 files changed, 0 insertions, 0 deletions