Game Development Community

Crash in Standard Zip Encryption Support resource

by Stephane Conde · in Torque Game Engine · 10/18/2006 (7:00 pm) · 21 replies

First, the background...

I posted about a crash bug I am having with encrypted zips in the Standard Zip Encryption Support resource: http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9896

To summarize what that post says, I am getting a crash in ZipLocalFileHeader::readFromStream(Stream &).

As an update to that post, the crash is happening specifically on the following line:

bool success = io_rStream.read(&m_header.headerSig);

The 'read' it is doing is somehow causing it to crash. Possibly the most strange part of all of this is that the issue seems to disappear when I try to debug the exact same executable. If I run the identical executable through XCode's debugger, the problem vanishes! I'm really not sure what to make of that and it is making the problem that much more difficult to fix. I was able to narrow the line down using 'print' statements, but I unfortunately cannot get any more information than that.

Does anyone have any ideas as to what might be causing this issue? For more information (including the crash log) see the previous post...

Thank you very much in advance for any help you might be able to offer.

Stephane
Page«First 1 2 Next»
#21
06/30/2007 (2:39 pm)
@Scott: Hehe... Yeah, I ran into a lot of trouble finding a zip program on the Mac that would create encrypted zips for me and that I could use with my automated build. I think there are some legal issues with having a zip encrypter if I remember correctly. I ended up having to download some source code for a zip program (which is apparently legal) which supported encryption and then compile it myself. Not a terribly user-friendly approach though. That was over 6 months ago so maybe something better is around now.

Unfortunately I can't quite remember where I got the source code from, but perhaps google can tell you... :)
Page«First 1 2 Next»