aboutsummaryrefslogtreecommitdiff
path: root/archival/libunarchive/decompress_unzip.c
AgeCommit message (Collapse)Author
2008-05-15more of -Wall fixes from Cristian Ionescu-Idbohrn.Denis Vlasenko
Some are fixing real bugs. function old new delta syslogd_main 938 958 +20 get_signum 136 143 +7 obj_load 777 782 +5 recv_from_to 210 214 +4 get_next_block 1795 1799 +4 display_topmem_process_list 1117 1121 +4 logread_main 484 487 +3 buffer_fill_and_print 73 76 +3 kill_main 687 689 +2 ll_remember_index 240 241 +1 do_stats 452 453 +1 if_readconf 166 165 -1 display_process_list 1192 1191 -1 run_applet_and_exit 507 505 -2 print_signames 33 31 -2 parse_one_line 1092 1090 -2 find_out_spec 57 55 -2 add_ksymoops_symbols 421 419 -2 ash_main 1407 1402 -5 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 11/8 up/down: 54/-17) Total: 37 bytes
2008-02-04unzip: do not try to read entire compressed stream at once (it can be huge)Denis Vlasenko
unzip: handle short reads correctly
2007-11-12gzip: fix a case where tar xzf fails (we use uninitialized fd)Denis Vlasenko
2007-10-13bzip2: port bzip2 1.0.4 to busybox. note: bzip2 code residesDenis Vlasenko
in separate directory (archival/bz/*) and is covered by BSD-style license. code size: 13k
2007-10-05gunzip: support concatenated gz files.Denis Vlasenko
text data bss dec hex filename 770988 1029 9552 781569 bed01 busybox.t0/busybox 771105 1029 9552 781686 bed76 busybox.t3/busybox
2007-09-21update Glenn McGrath's email addressDenis Vlasenko
2007-08-12trylink: produce even more info about final link stageDenis Vlasenko
trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
2007-06-08rmp: add optional support for bz2 data. +50 bytes of codeDenis Vlasenko
2007-04-10make compressed help code NOMMU- and NOFORK-friendly -Denis Vlasenko
no forking anymore, bunzip2 unpack routine now does all it in memory.
2007-03-14gzip: reduce global data footprint, part 3Denis Vlasenko
2007-01-10missed a few #undefs (no real impact I think)Denis Vlasenko
2007-01-10fix bug 1146 (gunzip breakage introduced by me --vda)Denis Vlasenko
2007-01-06move [g]zip decompressor state into malloc'ed buffer. size:Denis Vlasenko
text data bss dec hex 5256 0 108 5364 14f4 - old 4915 0 0 4915 1333 - new
2007-01-05split inflate_xx_setup() subroutines from inflate_xx()Denis Vlasenko
2007-01-05do not expose internal state of [g]zip unpacker.Denis Vlasenko
fix memory leak in inflate_gunzip.
2007-01-05Stopped doing assignments inside expressions.Denis Vlasenko
Who wrote this gem, I wonder? n -= (e = (e = gunzip_wsize - ((d &= gunzip_wsize - 1) > w ? d : w)) > n ? n : e);
2007-01-05decompress_unzip: preparatory patchDenis Vlasenko
2007-01-03extern variable declaration in a .c file is heresy - fixing itDenis Vlasenko
2006-12-26style fixesDenis Vlasenko
last xcalloc replaced by xzalloc
2006-12-22remove useless casts (type*) xzalloc(...)Denis Vlasenko
2006-11-27style cleanup: return(a) -> return a, part 1Denis Vlasenko
2006-10-20message string changes, mostly for consistency, also -32 bytes in .rodataDenis Vlasenko
2006-10-01g[un]zip: add support for -v (verbose).Denis Vlasenko
Add CONFIG_DESKTOP, almost all bloat from this change is hidden under that.
2006-09-30vconfig: fix bug 701 (I be damned if I understand it)Denis Vlasenko
2006-09-17whitespace cleanupDenis Vlasenko
2006-09-06removed a lot of trailing \n in bb_msg() calls. It is addedDenis Vlasenko
automatically by function itself.
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
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.)
2006-07-16Cleaup read() and write() variants, plus a couple of new functions likeRob Landley
xlseek and fdlength() for the new mkswap.
2006-07-01Remove all usage of the "register" storage class specifier."Robert P. J. Day"
2006-06-25Various cleanups I made while going through Erik Hovland's patch submissions,Rob Landley
some of which are even from him. :)
2006-04-10Patch from Rob Sullivan to consolidate crc32 table generation.Rob Landley
2006-04-02- janitorial: huft_build is never used outside of decompress_unzip.c and has noBernhard Reutner-Fischer
prototype (which suggests that it's of no general use) so make it static for now.
2006-03-10Patch from Denis Vlasenko turning static const int (which gets emitted intoRob Landley
the busybox binary) into enums (which don't).
2006-03-06Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley
definitions. (That should only be on prototypes.)
2006-02-20The gentoo security guys found another way to segfault busybox's decompressionRob Landley
code: we can do a null dereference if one of our huffman tables has all zero length codes. This fixes it. (Thanks solar.)
2006-01-30fixup a few types to prevent gcc (rightfully) whining about mixingEric Andersen
signed and unsigned, unmatches pointer target types, etc
2006-01-10Don't return 0 when there's an error.Rob Landley
2005-10-07- remove superfluous C statements ";;" in decompress_unzip.c, dpkg_deb.c ↵Bernhard Reutner-Fischer
ifconfig.c - gzip.c: see if O_NOFOLLOW is defined before using it, else take alternate path closes bug #221 (partially; The rest will follow later).
2005-09-14remove unrequired dependences"Vladimir N. Oleynik"
2005-08-31Anand Avati hit an integer overflow problem in our unzip code.Rob Landley
2005-08-16Bernhard Fischer says: use xmalloc() instead of malloc()Mike Frysinger
2005-07-20applying fixes from: Paul Fox
0000142: unzip enhancements
2005-03-01When filling the bit buffer, gzip decompression apparently never checked for ↵Manuel Novoa III
end of file, causing it to hang on corrupted input.
2004-04-25Update my email address, document some of my tasks in the AUTHORS fileGlenn L McGrath
2004-04-14Larry Doolittle writes:Eric Andersen
This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2003-11-15Move from read_gz to the pipe()+fork() method.Glenn L McGrath
open_transformer(), common code for pipe+fork. Function pointer for read() no longer needed. Allow inflate to be initialised with a specified buffer size to avoid over-reading. Reset static variables in inflate_get_next_window to fix a bug where only the first file in a .zip would be be extracted.
2003-07-14Update a bunch of docs. Run a script to update my email addr.Eric Andersen
2003-03-19Major coreutils update.Manuel Novoa III
2003-02-09Woops, my gunzip fix broke unzip, these cant be staticGlenn L McGrath