hush/libbb
Eric Andersen f96675bc50 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:
2003-07-28 06:37:04 +00:00
..
.cvsignore update .cvsignore files to note new location of loop.h 2001-03-17 00:15:02 +00:00
arith.c Apply vodz's last_patch53.gz (bb_asprintf.c) and last_patch54.gz 2002-09-12 14:52:26 +00:00
ask_confirmation.c Major coreutils update. 2003-03-19 09:13:01 +00:00
bb_asprintf.c Major coreutils update. 2003-03-19 09:13:01 +00:00
change_identity.c Major coreutils update. 2003-03-19 09:13:01 +00:00
chomp.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
compare_string_array.c Major coreutils update. 2003-03-19 09:13:01 +00:00
concat_path_file.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
concat_subpath_file.c Vodz, last_patch_86 2003-05-26 14:07:50 +00:00
copy_file.c Vodz, last_patch_86 2003-05-26 14:07:50 +00:00
copyfd.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
correct_password.c Major coreutils update. 2003-03-19 09:13:01 +00:00
create_icmp6_socket.c Major coreutils update. 2003-03-19 09:13:01 +00:00
create_icmp_socket.c Major coreutils update. 2003-03-19 09:13:01 +00:00
default_error_retval.c Major coreutils update. 2003-03-19 09:13:01 +00:00
device_open.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
dump.c sync with waldi 2003-04-21 10:26:39 +00:00
error_msg_and_die.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
error_msg.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
fclose_nonstdin.c Major coreutils update. 2003-03-19 09:13:01 +00:00
fflush_stdout_and_exit.c Major coreutils update. 2003-03-19 09:13:01 +00:00
fgets_str.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
find_mount_point.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
find_pid_by_name.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
find_root_device.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
full_read.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
full_write.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
get_console.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
get_last_path_component.c Major coreutils update. 2003-03-19 09:13:01 +00:00
get_line_from_file.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
getopt_ulflags.c last_patch89 from vodz: 2003-06-20 09:01:58 +00:00
herror_msg_and_die.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
herror_msg.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
human_readable.c Generalize comment -- no longer ls specific 2001-06-30 18:08:36 +00:00
inet_common.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
inode_hash.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
interface.c James Petterson writes: 2003-07-28 06:37:04 +00:00
isdirectory.c Vodz, last_patch_86 2003-05-26 14:07:50 +00:00
kernel_version.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
last_char_is.c Save 10 bytes or so, last_patch_70 from Vladimir N. Oleynik 2002-12-03 20:34:36 +00:00
llist_add_to.c Move add_to_list from libunarchive to libbb so it can be of more general use (eg ifupdown). Changed the name to llist_add_to as i plan on adding more llist_ functions as needed (e.g. llist_free). 2002-12-08 00:54:33 +00:00
login.c Geir Thomassen wrote, regarding networking/httpd.c line 1358 2003-06-26 09:05:32 +00:00
loop.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
make_directory.c Major coreutils update. 2003-03-19 09:13:01 +00:00
Makefile Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
Makefile.in Remove remaining libc5 support code 2003-07-22 08:56:55 +00:00
messages.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
mk_loop_h.sh
mode_string.c Major coreutils update. 2003-03-19 09:13:01 +00:00
module_syscalls.c Remove remaining libc5 support code 2003-07-22 08:56:55 +00:00
mtab_file.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
mtab.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
my_getgrgid.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
my_getgrnam.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
my_getpwnam.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
my_getpwnamegid.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
my_getpwuid.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
obscure.c Major coreutils update. 2003-03-19 09:13:01 +00:00
parse_mode.c Restrict octal perms to <= 07777. Cosmetic error message change. 2003-03-19 18:09:03 +00:00
parse_number.c Major coreutils update. 2003-03-19 09:13:01 +00:00
perror_msg_and_die.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
perror_msg.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
perror_nomsg_and_die.c Major coreutils update. 2003-03-19 09:13:01 +00:00
perror_nomsg.c Major coreutils update. 2003-03-19 09:13:01 +00:00
print_file.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
printf.c Minor .o file naming change 2003-04-16 23:02:35 +00:00
process_escape_sequence.c Major coreutils update. 2003-03-19 09:13:01 +00:00
procps.c Patch from Russell Coker: 2003-07-03 10:07:04 +00:00
pw_encrypt.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
pwd2spwd.c Cleanup shadow.h stuff so it behaves as intended 2002-07-03 04:47:43 +00:00
qmodule.c rmmod -a removed modules recursively 2002-12-14 01:58:59 +00:00
read_package_field.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
README Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
real_loop.h Move real_loop.h to libbb, where it belongs. 2001-04-18 22:23:22 +00:00
recursive_action.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
remove_file.c Vodz, last_patch_86 2003-05-26 14:07:50 +00:00
restricted_shell.c Port over the last of the tinylogin applets 2002-06-23 04:24:25 +00:00
run_parts.c Put this back the way it was. I misunderstood what vodz was doing. 2003-05-27 20:45:59 +00:00
run_shell.c Patch from Russell Coker: 2003-07-03 10:07:04 +00:00
safe_read.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
safe_strncpy.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
setup_environment.c Vodz, last_patch_86 2003-05-26 14:07:50 +00:00
simplify_path.c Major coreutils update. 2003-03-19 09:13:01 +00:00
skip_whitespace.c Major coreutils update. 2003-03-19 09:13:01 +00:00
speed_table.c Major coreutils update. 2003-03-19 09:13:01 +00:00
syscalls.c Remove remaining libc5 support code 2003-07-22 08:56:55 +00:00
syslog_msg_with_name.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
trim.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
u_signal_names.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
vdprintf.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
verror_msg.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
vherror_msg.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
vperror_msg.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
warn_ignoring_args.c Major coreutils update. 2003-03-19 09:13:01 +00:00
wfopen_input.c Major coreutils update. 2003-03-19 09:13:01 +00:00
wfopen.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
xconnect.c Major coreutils update. 2003-03-19 09:13:01 +00:00
xfuncs.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
xgetcwd.c Vodz, last_patch_86 2003-05-26 14:07:50 +00:00
xgethostbyname2.c Major coreutils update. 2003-03-19 09:13:01 +00:00
xgethostbyname.c Major coreutils update. 2003-03-19 09:13:01 +00:00
xgetlarg.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
xgetularg.c Major coreutils update. 2003-03-19 09:13:01 +00:00
xreadlink.c Major coreutils update. 2003-03-19 09:13:01 +00:00
xregcomp.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00

Please see the LICENSE file for copyright information (GPLv2)
    
libbb is BusyBox's utility library.  All of this stuff used to be stuffed into
a single file named utility.c.  When I split utility.c to create libbb, some of
the very oldest stuff ended up without their original copyright and licensing
information (which is now lost in the mists of time).  If you see something
that you wrote that is mis-attributed, do let me know so we can fix that up.

	Erik Andersen 
	<andersen@codepoet.org>