7z support working?

Jeremy jswigart at gmail.com
Sun Feb 3 13:04:54 EST 2008


Is there something special you have to do in order to get 7z support
working? I set up the PHYSFS_SUPPORTS_7Z define, and everything seems peachy
until I attempt to mount a 7z archive, and it crashes when attempting to use
an uninitialized struct. Using the test_physfs.c and latest from svn. Even
in the app I'm using an older version of physfs in, it won't mount a 7z
file. It doesn't crash, but there appears to be a bug reading the header. If
I fix that it gets farther and then crashes.

Hopefully I'm just forgetting to do something and this support isn't just
broken in SVN.


test.exe!LzmaDecode(_CLzmaDecoderState * vs=0x0012edcc, const unsigned char
* inStream=0x003368c0, unsigned int inSize=4826, unsigned int *
inSizeProcessed=0x0012ede4, unsigned char * outStream=0x00337bd8, unsigned
int outSize=15212, unsigned int * outSizeProcessed=0x0012edb4, int
finishDecoding=1241092)  Line 220 + 0x18 bytes    C
test.exe!SzDecodeLzma(_CCoderInfo * coder=0x00333790, unsigned __int64
inSize=4826, const unsigned char * inBuffer=0x003368c0, unsigned char *
outBuffer=0x00337bd8, unsigned int outSize=15212, _ISzAlloc *
allocMain=0x003335a8)  Line 102 + 0x21 bytes    C
test.exe!SzDecode2(const unsigned __int64 * packSizes=0x00333660, const
_CFolder * folder=0x00333728, const unsigned char * inBuffer=0x003368c0,
unsigned char * outBuffer=0x00337bd8, unsigned int outSize=15212, _ISzAlloc
* allocMain=0x003335a8, unsigned char * * tempBuf=0x0012f110)  Line 271 +
0x2a bytes    C
test.exe!SzDecode(const unsigned __int64 * packSizes=0x00333660, const
_CFolder * folder=0x00333728, const unsigned char * inBuffer=0x003368c0,
unsigned char * outBuffer=0x00337bd8, unsigned int outSize=15212, _ISzAlloc
* allocMain=0x003335a8)  Line 337 + 0x21 bytes    C
test.exe!SzReadAndDecodePackedStreams2(_ISzInStream * inStream=0x003335b0,
_CSzState * sd=0x0012f57c, _CSzByteBuffer * outBuffer=0x0012f4f0, unsigned
__int64 baseOffset=32, _CArchiveDatabase * db=0x0012f3dc, unsigned __int64 *
* unPackSizes=0x0012f3d0, unsigned char * * digestsDefined=0x0012f3c4,
unsigned int * * digests=0x0012f3b8, unsigned char * * inBuffer=0x0012f3ac,
_ISzAlloc * allocTemp=0x003335a8)  Line 1166 + 0x25 bytes    C
test.exe!SzReadAndDecodePackedStreams(_ISzInStream * inStream=0x003335b0,
_CSzState * sd=0x0012f57c, _CSzByteBuffer * outBuffer=0x0012f4f0, unsigned
__int64 baseOffset=32, _ISzAlloc * allocTemp=0x003335a8)  Line 1195 + 0x31
bytes    C
test.exe!SzArchiveOpen2(_ISzInStream * inStream=0x003335b0,
_CArchiveDatabaseEx * db=0x00333560, _ISzAlloc * allocMain=0x003335a0,
_ISzAlloc * allocTemp=0x003335a8)  Line 1287 + 0x26 bytes    C
test.exe!SzArchiveOpen(_ISzInStream * inStream=0x003335b0,
_CArchiveDatabaseEx * db=0x00333560, _ISzAlloc * allocMain=0x003335a0,
_ISzAlloc * allocTemp=0x003335a8)  Line 1310 + 0x15 bytes    C
test.exe!LZMA_openArchive(const char * name=0x0033325e, int forWriting=0)
Line 489 + 0x21 bytes    C
test.exe!tryOpenDir(const PHYSFS_Archiver * funcs=0x004e0220, const char *
d=0x0033325e, int forWriting=0)  Line 395 + 0x12 bytes    C
test.exe!openDirectory(const char * d=0x0033325e, int forWriting=0)  Line
430 + 0x13 bytes    C
test.exe!createDirHandle(const char * newDir=0x0033325e, const char *
mountPoint=0x0012fa21, int forWriting=0)  Line 554 + 0xd bytes    C
test.exe!PHYSFS_mount(const char * newDir=0x0033325e, const char *
mountPoint=0x0033326d, int appendToPath=1)  Line 969 + 0xf bytes    C
test.exe!cmd_mount(char * args=0x0033325e)  Line 175 + 0x11 bytes    C
test.exe!process_command(char * complete_cmd=0x00333318)  Line 1067 + 0xe
bytes    C
test.exe!main(int argc=1, char * * argv=0x00333a98)  Line 1202 + 0x9
bytes    C
test.exe!__tmainCRTStartup()  Line 327 + 0x19 bytes    C
test.exe!mainCRTStartup()  Line 196    C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/physfs/attachments/20080203/e12cfbe4/attachment.htm>


More information about the physfs mailing list