Commit Graph

216 Commits

Author SHA1 Message Date
Ryan C. Gordon 31443d2c81 Upped version to 1.1.0 2005-07-23 22:19:01 +00:00
Ryan C. Gordon d8541f7ae4 Fixed "make dist". 2005-07-23 22:17:29 +00:00
Ryan C. Gordon 3f6c5e6348 Moved to actual zlib 1.2.3. 2005-07-23 22:02:00 +00:00
Ryan C. Gordon 49ebc305ac More minor OS/2 tweaks. 2005-07-23 22:01:03 +00:00
Ryan C. Gordon 8f3ab12d22 From: Jorg Walter
To: icculus@clutteredmind.org
Subject: Bug in zip archiver
Date: Sat, 23 Jul 2005 22:19:09 +0200

Hi!

PhysFS has a bug in the ZIP archive module, function zip_find_start_of_dir.
Upon encountering a substring match, rc is set to a wrong value. The fix is
simple: swap both assignments like this:

[patch below  --Ed.]

Some additional info for testing: Symptoms when you encounter this bug: A dir
is reported as empty although it has files in it; prerequisites or
encountering it: two dirs, one a substring of another, like "data/txt" and
"data/txt2", laid out in a way so that variable "middle" points to a file in
txt2 at some point during zip_find_start_of_dir

By the way, if you're interested in where PhysFS is used: I found this bug
while writing a patch for DOSBox (http://dosbox.sourceforge.net) to support
ZIP files. And I'd love to see that enhanced PHYSFS_mount syntax in an
official release soon *hint* ;);)
2005-07-23 21:46:07 +00:00
Ryan C. Gordon 507b099d5d Patched to compile on OS/2 again. 2005-07-21 18:10:17 +00:00
Ryan C. Gordon c794701885 Patched zlib security hole discussed here:
http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-2096
2005-07-13 15:10:00 +00:00
Ryan C. Gordon ec86fac0bb Updated zlib to 1.2.2. 2005-07-13 15:06:21 +00:00
Ryan C. Gordon 91319260b1 Added mingw support to the build process (thanks, Matze!). 2005-06-13 01:13:21 +00:00
Ryan C. Gordon d18fb707b0 Changed CWProjects from SITX to SIT format, so OS9 users can unpack it. 2005-03-16 12:15:22 +00:00
Ryan C. Gordon 7a62100d99 Updated. 2005-03-16 11:48:10 +00:00
Ryan C. Gordon 12684647dc MacOS Classic fixes and MPW support (thanks, Chris!). 2005-03-16 11:42:54 +00:00
Ryan C. Gordon 16e00ed962 Added translation for WAD file type. 2005-03-16 11:27:31 +00:00
Ryan C. Gordon 3a0e6fa051 Builds on Mac Classic again. 2005-03-14 12:05:07 +00:00
Ryan C. Gordon 4787894ffa Updated. 2005-03-14 11:48:29 +00:00
Ryan C. Gordon a2cc461727 More mountpoint work and other cleanups. 2005-03-14 07:15:40 +00:00
Ryan C. Gordon c557443265 Updated. 2005-03-13 12:01:59 +00:00
Ryan C. Gordon 8786d07f5d Updated. 2005-03-13 09:16:26 +00:00
Ryan C. Gordon 9f9800928d Fixed unix.c to compile again on MacOS X. 2005-03-13 03:18:18 +00:00
Ryan C. Gordon bdb7f54bd9 Added evil GOTO_*_MACRO_* macros. 2005-03-13 03:04:04 +00:00
Ryan C. Gordon 0dd93d3c13 Updated. 2005-02-15 22:26:05 +00:00
Ryan C. Gordon 5c313d7a93 Fixed filename sorting, to fix lookups that shouldn't fail (thanks, Chris!). 2005-01-05 05:15:12 +00:00
Ryan C. Gordon d19d7b5a59 Fixed some documentation/header comment typos (thanks, Gaetan!) 2004-12-16 16:20:46 +00:00
Ryan C. Gordon e2c199b8ab Fixed infinite loop in enum code (thanks, Adam!) 2004-10-31 12:20:00 +00:00
Ryan C. Gordon a27c289f29 CFLAGS is used after PHYSFSCFLAGS, so you can override optimization flags, etc. 2004-10-30 23:45:29 +00:00
Ryan C. Gordon bdd4ca0d93 Fixed a strcpy bug. 2004-10-30 09:31:54 +00:00
Ryan C. Gordon 3e06b381e9 Removed profiling code. 2004-10-07 02:10:01 +00:00
Ryan C. Gordon c2c71fb55f Removed LinkedStringList and related code. 2004-09-29 06:37:20 +00:00
Ryan C. Gordon 0492580bda Removed all the forward declaration cruft from the archivers. 2004-09-29 06:18:04 +00:00
Ryan C. Gordon c2765f8571 Added callback APIs and ripped up the internals everywhere to use them. 2004-09-29 06:09:29 +00:00
Ryan C. Gordon e0da355650 Updated. 2004-09-26 13:15:03 +00:00
Ryan C. Gordon 90031c81f3 Did the same thing to FileHandles than I did to DirHandles, but this
triggered massive tweaking in physfs.c. A lot of code got little
cleanups, which was nice. Less malloc pressure, too, since opening a
file used to allocate a ton of crap and mush it together...now it's
basically down to one structure and the instance data in whatever
archiver.
2004-09-26 13:00:59 +00:00
Ryan C. Gordon 94759513d9 Cleaned up archiver interface to not deal with DirHandles anymore,
which simplifies things, removes some responsibility and code
duplication from the archivers, and trims some malloc pressure.
Also ripped up the allocation hook code a little. We'll try to screw
with memory locking later, since it makes everything ugly and
complex. Oh well.
2004-09-26 00:25:04 +00:00
Ryan C. Gordon 0030a3cd04 Updated. 2004-09-23 06:53:16 +00:00
Ryan C. Gordon cd942faff4 Updated. 2004-09-23 03:49:59 +00:00
Ryan C. Gordon a7fe9bcdad Updated. 2004-04-09 06:37:03 +00:00
Ryan C. Gordon 7988aab2e4 Updated. 2004-04-09 06:32:25 +00:00
Ryan C. Gordon 1ed3abfcab Updated. 2004-01-15 14:51:59 +00:00
Ryan C. Gordon 19f5b8651d Updated. 2004-01-08 05:52:41 +00:00
Ryan C. Gordon 56606fa65c Updated. 2003-12-29 08:49:58 +00:00
bhook 86dc6d9ebc Converted VC6 project to use zlib121, fixed some link warnings that
Z_PREFIX=1 missed by default, enabled Z_PREFIX=1 by default in VC6
dsp file, updated changelog.
2003-12-22 18:19:09 +00:00
Ryan C. Gordon 02866267d5 Updated. 2003-12-22 17:12:51 +00:00
Ryan C. Gordon 6d45e5b718 Updated. 2003-12-19 01:53:06 +00:00
Ryan C. Gordon 4bbb4ea217 Updated. 2003-12-18 19:54:41 +00:00
Ryan C. Gordon 3a5f64ff06 Updated. 2003-12-15 04:00:53 +00:00
Ryan C. Gordon f6234dbc2a Updated. 2003-12-08 12:38:10 +00:00
Ryan C. Gordon 4e58f93af9 Updated 2003-12-07 05:39:54 +00:00
Ryan C. Gordon caf828b73d Updated. 2003-12-07 05:30:06 +00:00
Ryan C. Gordon 4f0b5d6e47 Updated. 2003-11-11 14:11:00 +00:00
Ryan C. Gordon e04c24cbcd Updated. 2003-11-09 21:07:12 +00:00