physfs/archivers
Ryan C. Gordon ac277daac4 Date: Sat, 2 Feb 2008 14:28:02 +1300
From: eH
To: physfs@icculus.org
Subject: [physfs] lzma.c msvc, etc. patch

I came across a few bugs compiling PhysFS with msvc9 - I've created a patch which seems to fix them:
SzFileReadImp / SzFileSeekImp:
Problem: Can't preform arithmatic on 'void *'
Fix:        Cast 'object' to unsigned long

LZMA_enumerateFiles:
Problem: There is no error handling if the directory 'dname' doesn't exist
Fix:         Check the return value of 'lzma_find_file()' before using it

LZMA_isDirectory:
Problem: return (file->item->IsDirectory) is illegal if 'file' doesn't exist
Fix:         Make sure 'file' isn't null before returning
2008-02-02 02:32:48 +00:00
..
dir.c Renamed LICENSE to LICENSE.txt 2007-03-11 10:10:28 +00:00
grp.c Logic bug in MVL/HOG/GRP archivers: these archives never contain subdirs...but they 2007-03-28 17:29:52 +00:00
hog.c Logic bug in MVL/HOG/GRP archivers: these archives never contain subdirs...but they 2007-03-28 17:29:52 +00:00
lzma.c Date: Sat, 2 Feb 2008 14:28:02 +1300 2008-02-02 02:32:48 +00:00
mvl.c Logic bug in MVL/HOG/GRP archivers: these archives never contain subdirs...but they 2007-03-28 17:29:52 +00:00
qpak.c Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(), 2007-03-24 03:54:58 +00:00
wad.c Renamed LICENSE to LICENSE.txt 2007-03-11 10:10:28 +00:00
zip.c Fixed zip archiver: could do bogus seek if a small, non-zip file got put 2007-05-05 05:52:43 +00:00