summaryrefslogtreecommitdiff
path: root/libbb/obscure.c
Commit message (Collapse)AuthorAgeFilesLines
* unit-tests: implement the unit-testing frameworkBartosz Golaszewski2014-06-221-0/+38
| | | | | | | | | | | | | | This set of patches adds a simple unit-testing framework to Busybox unit-tests: add some helper macros for unit-test framework implementation unit-tests: implement the unit-testing framework unit-tests: add basic documentation on writing the unit test cases unit-tests: modify the Makefile 'test' target to run unit-tests too unit-tests: add two example test cases unit-tests: modify the existing strrstr test code to use the unit-test framework Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/obscure.c: code shrink. Suggested by Tito.Denys Vlasenko2014-04-161-1/+1
| | | | | | | function old new delta string_checker 97 92 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* a few tweaks for bionicDenys Vlasenko2011-07-081-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: fix fallout from last patch to obscure() (my mistake). +143 bytesDenys Vlasenko2010-08-171-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: shrink obscure()Bob Dunlop2010-08-171-33/+45
| | | | | | | | | | | | function old new delta string_checker_helper 59 45 -14 string_checker 116 98 -18 obscure 367 204 -163 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-195) Total: -195 bytes Signed-off-by: Bob Dunlop <bob.dunlop@xyzzy.org.uk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: introduce and use FAST_FUNC: regparm on i386, otherwise no-onDenis Vlasenko2008-06-271-1/+1
| | | | | | | text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
* *: intrduce and use safe_gethostname. By Tito <farmatito AT tiscali.it>Denis Vlasenko2008-02-251-7/+6
| | | | | | | | | | | | | | | | | | | | | safe_gethostname - 48 +48 glob3 35 37 +2 timestamp_and_log 314 315 +1 udhcp_send_kernel_packet 234 231 -3 scan_tree 275 271 -4 passwd_main 1074 1070 -4 print_login_prompt 68 58 -10 obscure 392 377 -15 syslogd_main 882 866 -16 print_login_issue 516 478 -38 hostname_main 278 223 -55 parse_and_put_prompt 825 756 -69 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/9 up/down: 51/-214) Total: -163 bytes text data bss dec hex filename 798791 728 7484 807003 c505b busybox_old 798631 728 7484 806843 c4fbb busybox_unstripped
* fbset: fix buglet where we were using wrong pointerDenis Vlasenko2007-11-061-1/+2
| | | | | | readahead: stop using stdio.h *: style fixes
* passwd: rework:Denis Vlasenko2006-11-301-5/+5
| | | | | | | | | * do not make backup copy by copying (just retain old file) * correctly fall back to /etc/passwd if user is not in shadow * fix bug with overlong passwd entries * be permissive on some kinds of failures * reduce stack usage * code size: -500 bytes
* style cleanup: return(a) -> return a, part 2Denis Vlasenko2006-11-271-1/+1
|
* style cleanup: return(a) -> return a, part 1Denis Vlasenko2006-11-271-1/+1
|
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-6/+1
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* Tito writes: If the gecos field of an user is empty, obscure reports a false ↵Mike Frysinger2006-07-151-1/+1
| | | | "similar to gecos" error.
* Correct the comment to match the code."Robert P. J. Day"2006-07-021-1/+1
|
* Allow a user-configurable minimum password length."Robert P. J. Day"2006-07-021-7/+2
|
* - include strings.hBernhard Reutner-Fischer2006-05-191-7/+8
| | | | Thanks to Rich Felker for pointing this out.
* New version from Tito.Rob Landley2006-04-021-224/+144
|
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* Save a few bytes in error message.Rob Landley2006-02-051-1/+1
|
* more obscure"Vladimir N. Oleynik"2006-01-311-1/+4
|
* - correct definitions.Bernhard Reutner-Fischer2006-01-131-2/+2
|
* - shrink simple obscure stuff a tiny bit:Bernhard Reutner-Fischer2006-01-121-17/+22
| | | | | | | text data bss dec hex filename 789 0 0 789 315 obscure.o.oorig 771 0 0 771 303 obscure.o - replace bzero by memset while at it.
* Patch from vodz to cleanup libbb/obscure.c:password_check()Eric Andersen2003-08-061-3/+3
| | | | to not copy too much data.
* Vladimir N. Oleynik writes:Eric Andersen2003-07-301-2/+5
| | | | | | | | | | | | | | | | This moment have algoritmicaly problem, not overflow: strcat(wrapped, wrapped) - may be looped. Hand patch: - else if (strstr(strcat(wrapped, wrapped), newmono)) + else { + safe_strncpy(wrapped + lenwrap, wrapped, lenwrap + 1); + if (strstr(wrapped, newmono)) +} --w vodz
* Major coreutils update.Manuel Novoa III2003-03-191-3/+3
|
* last_patch61 from vodz:Eric Andersen2002-10-101-30/+32
| | | | | | | | | New complex patch for decrease size devel version. Requires previous patch. Also removed small problems from dutmp and tar applets. Also includes vodz' last_patch61_2: Last patch correcting comment for #endif and more integrated with libbb (very reduce size if used "cat" applet also). Requires last_patch61 for modutils/config.in.
* Port over the last of the tinylogin appletsEric Andersen2002-06-231-0/+246
-Erik