lindsayHan / ziparchive

Automatically exported from code.google.com/p/ziparchive
0 stars 0 forks source link

Creating a zip file with a password crashes tha pp #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call CreateZipFile2:Password:
2. Call addFileToZip:newname:
3. See bad access crash

What is the expected output? What do you see instead?
I am expecting to be able to add files to the zip archive without it crashing.

What version of the product are you using? On what operating system?
The latest, on the iPhone 4 using iOS4.1

Please provide any additional information below.

The problem is that you are not retaining the password that is being set. So 
when _password is trying to be read later it crashes. Make password a property 
that you retain and release and it works.

Original issue reported on code.google.com by billsthe...@gmail.com on 16 Sep 2010 at 4:37

GoogleCodeExporter commented 8 years ago
Fix pending.  Thanks for submitting!

Original comment by elinc...@hachisoft.com on 15 Feb 2011 at 8:07