fli4l
  1. fli4l

busybox

Public
AuthorCommitMessageCommit dateIssues
Brian FoleyBrian Foley
b7928e18b14sed: Fix backslash parsing for 'w' command argIf there's any whitespace between w and the filename, parse_file_cmd writes to the wrong offset when trying to fix up backslashes. This can be seen in the asan build with busybox sed -e 'w 0\\' Signed-off-by: Brian Foley <bpfoley@google.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Brian FoleyBrian Foley
1c42c18e960awk: Fix overly permissive func arg list parsingIt allows things like 'func f(a b)' and 'func f(a,)' which GNU awk forbids. function old new delta parse_program 327 367 +40 chain_expr 40 67 +27 parse_expr 891 915 +24 EMSG_TOO_FEW_ARGS ...
Brian FoleyBrian Foley
08a514c097fawk: Syntax error if delete isn't given an arg.Unlike exit and return, delete strictly requires an arg, and derefs a null pointer if executed without one. Signed-off-by: Brian Foley <bpfoley@google.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Brian FoleyBrian Foley
dac15a10accawk: Guard pointer chasing when parsing ternary expressions.Avoids an uninit pointer deref for some malformed ternary exprs. Add a test that would crash in busybox before this fix. Signed-off-by: Brian Foley <bpfoley@google.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Mark MarshallMark Marshall
11cb9eeffeccapability: fix string comparison in cap_name_to_numberThe result of strcasecmp was being used incorrectly. This function returns 0 if the strings match. Signed-off-by: Mark Marshall <mark.marshall@omicronenergy.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
fc472ea1879wget: remove empty if/endif preprocessor directive pairSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
f7235cc89f2service examples: ifplugd -M to prevents frequent respawningSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bernhard Reutner-FischerBernhard Reutner-Fischer
774879c4e11checkstack.pl: tweak bfin reSigned-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-FischerBernhard Reutner-Fischer
f59739a6636checkstack: pull from upstreammerge upstream changes Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-FischerBernhard Reutner-Fischer
fe7ae562e5dcheckstack.pl: fix arch autodetectionchomp trailing newlines Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Martin LewisMartin Lewis
94e748d0276wget: don't notify on download begin and end if quietWhen printing notification on download start and end, mistakenly, it didn't respect the quiet option function old new delta retrieve_file_data 561 579 +18 wget_main 2432 2437 +5 ----------------------------------------------------------------------------...
Denys VlasenkoDenys Vlasenko
edb74f40191Update examples/udhcp/udhcpd.confSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
77524a311a5start-stop-daemon: fix "both -x and -a" case: -a does override argv[0]Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
088fec36fedstart-stop-daemon: create pidfile before parent exits, closes 8596This removes DAEMON_DOUBLE_FORK flag from bb_daemonize_or_rexec(), as SSD was the only user. Also includes fix for -S: now works without -a and -x, does not print pids (compat with "start-stop-daemon (OpenRC) 0.34.11 (Gentoo Linux)"). function old new delta start_stop_daemon_main 1018 1084 +66 add_interface ...
Denys VlasenkoDenys Vlasenko
b67d900395aadduser: fix a bug of getpwnam() overwriting shell name, closes 8586Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
3109d1f9659tls: code shrinkfunction old new delta lm_add 82 78 -4 curve25519 793 786 -7 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-11) Total: -11 bytes Signed-off-by: Deny...
Denys VlasenkoDenys Vlasenko
6ca8e347fednslookup: return exitcode 1 on resolution errorsfunction old new delta nslookup_main 757 760 +3 send_queries 1690 1677 -13 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
84191231125telnet: placate compiler's warningSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
ecf02e8b830date: improve help text for -DSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
cfc2546ea4bbc: code shrinkfunction old new delta xc_parse_pushInst_and_Index - 16 +16 zbc_parse_expr 1818 1816 -2 xc_parse_pushIndex 65 61 -4 zbc_parse_pushSTR 63 58 -5 zbc_parse_name ...
Denys VlasenkoDenys Vlasenko
a1698a15dc9bc: remove "empty expression" check/message, parsing fails in these cases anywayfunction old new delta zbc_parse_expr 1848 1818 -30 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
132d7c098b1bc: zbc_parse_expr_empty_ok() is unused except by zbc_parse_expr(), fold it infunction old new delta zbc_parse_expr 1865 1848 -17 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
fc7aa7a296cbc: disallow invalid syntax like "{ print 1 print 2 }"statement parsing must NOT eat the terminator: caller needs to know what it was, to correctly decide whether it is a valid one. function old new delta zxc_program_read - 234 +234 zdc_program_printStream - 144 +144 zbc_parse_stmt_possibly_auto ...
Einar JónEinar Jón
ce51140664dpasswd: initialize pointers correctlyFix for running passwd as root (or sudo passwd $USER). Crashed on call to free(orig) during cleanup. Fix regression from commit 17058a06c4333fc0c492c168c8a971ebd0fd5a5a Root user never changes the orig pointer, so when cleaning up, passwd tried to free orig=(char*)"" Example: sudo passwd $USER Changing password for xxx New password: Bad password: too short Retype password: Passwords don't matc...
Denys VlasenkoDenys Vlasenko
959b04bc0e9tls: add comment about dl.fedoraproject.org needing secp256r1 ECC curveSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
74d9f1ba370udhcpc: when decoding DHCP_SUBNET, ensure it is 4 bytes longfunction old new delta udhcp_run_script 795 801 +6 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
b80bdeba024udhcp: code shrinkfunction old new delta attach_option 406 349 -57 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
edca770d11esleep: support "inf"Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
4bdc914ff97build system: fix compiler warningsSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
2d9e0979634find: handle leading -- argumentfunction old new delta find_main 464 478 +14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Danijel TasovDanijel Tasov
3f4fac577a8telnet: provide feedback after successful connectThe real telnet provides some feedback: Trying 127.0.0.1... Connected to localhost.localdomain. Escape character is '^]'. We should do this to, because people are sitting there and think a firewall is dropping packets. function old new delta telnet_main 1270 1279 +9 Signed-off-by: Danijel Tasov...
Denys VlasenkoDenys Vlasenko
39b18196f89telnetd: fix bad interaction with vhangup() from loginSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
935afafcf37telnet: code shrinkfunction old new delta put_iac3_IAC_x_y_merged - 21 +21 put_iac4_msb_lsb - 19 +19 put_iac2_msb_lsb - 19 +19 put_iac 20 34 +14 iac_flush ...
Denys VlasenkoDenys Vlasenko
5bfc4a32fdatelnet: speed up processing of network inputfunction old new delta telnet_main 1482 1492 +10 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Kaarle RitvanenKaarle Ritvanen
1c952ba2060ip: print dadfailed flagSigned-off-by: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Martijn DekkerMartijn Dekker
f83292cfc44ls: make -i compatible with coreutils: don't follow symlink by defaultSigned-off-by: Martijn Dekker <martijn@inlv.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Martin LewisMartin Lewis
46fc3290c20wget: notify on download begin and endWhen using -o to file the progress meter is not displayed, so write that we started the download and that we finished it. function old new delta retrieve_file_data 465 561 +96 wget_main 2412 2432 +20 -------------------------------------------------------...
Martin LewisMartin Lewis
64f35361f42wget: add -o flagfunction old new delta wget_main 2348 2412 +64 packed_usage 33062 33093 +31 static.wget_longopts 252 266 +14 progress_meter 158 159 +1 --------------------------------...
Denys VlasenkoDenys Vlasenko
e05ec6ed3ecbc: shorten "limits" output text data bss dec hex filename 979016 485 7296 986797 f0ead busybox_old 978959 485 7296 986740 f0e74 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
f11b5b9864dbc: formatting changes, added a FIXME comment, no logic changesSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
54f5c1d6006bc: support void functions (GNU compat)function old new delta xc_program_print - 689 +689 zxc_vm_process 814 869 +55 zxc_program_exec 4098 4116 +18 zxc_program_assign 385 392 +7 bc_result_free ...
Denys VlasenkoDenys Vlasenko
1db367a8e65dc: fit returning of stringfunction old new delta zxc_program_exec 4087 4098 +11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
6842c6062a2dc: fix '?'function old new delta zdc_parse_expr 470 479 +9 zxc_vm_process 839 814 -25 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 9/-25) Total: -16 bytes Signed-off-by: Deny...
Denys VlasenkoDenys Vlasenko
377cc97b193bc: eliminate struct BcInstPtr::results_len_before_call, it is redundantfunction old new delta zbc_program_call 332 318 -14 zxc_program_exec 4147 4087 -60 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-74) Total: -74 bytes Signed-off-by: Deny...
Denys VlasenkoDenys Vlasenko
02c3d7a1c9ebc: add a palceholder comment for "void" returnSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
19c3eb0b049bc: remove extra div/0 test, remove test for string function parameterfunction old new delta zbc_program_call 354 332 -22 zxc_program_assign 426 385 -41 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-63) Total: -63 bytes Signed-off-by: Deny...
Denys VlasenkoDenys Vlasenko
96b5ec10fb8bc: fix "...; return}" to work, disallow "return ()"function old new delta zbc_parse_expr 24 1865 +1841 zbc_parse_stmt_possibly_auto 1425 1413 -12 bc_parse_expr_empty_ok 1843 - -1843 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shri...
Denys VlasenkoDenys Vlasenko
ae6c44ea15fbc: make error line number also size_t, like everything elseSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
cb7c955aeb5bc: generate large bc tests on the fly, -5 mbytes in the git treeSigned-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys VlasenkoDenys Vlasenko
266bec8ba76bc: speed up string printing, fix print ""function old new delta static.esc - 9 +9 zxc_program_print 681 683 +2 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/0 up/down: 11/0) Total: 11 bytes text data ...