Comments (9)
While I haven't checked, I think that it should support ios9.
from swcompression.
It crashed when I was using ios9.3.5. Under the ZLib/ zlibarchive.swift file, this line of code has an issue else {throw ZlibError. WrongAdler32 (out)}. But when I'm running on an ios10+ app, that's fine. I hope you can see why.
from swcompression.
Hmm, I am unable to reproduce the issue you are talking about: I downloaded ios 9.3 simulator and run my tests using it and I haven't encountered any crashes. What version of Swift are you using? Is it possible for you to provide a zlib archive file that is causing the crash?
from swcompression.
I guess, I should have also asked: what version of SWCompression are you using?
from swcompression.
'SWCompression', '~> 4.5.0' I am a real ios9.3.5 crash
from swcompression.
What about my other questions:
- What version of Swift are you using?
- Is it possible for you to provide a zlib archive file that is causing the crash?
from swcompression.
We are using Swift3.0 and currently intend to upgrade to 4.2. Let's check first. Update and see if there are any problems. Thank you very much for your reply
from swcompression.
Hello, I updated the latest version of SWCompression today, but it will still crash in ios9.3.5 system. My breakpoint is located here.ZLib / zlibarchive.swift
let adler32 = bitReader.uint32().byteSwapped
guard CheckSums.adler32(out) == adler32
else { throw ZlibError.wrongAdler32(out) }
malloc: *** malloc_zone_unregister() failed for 0x68ec000
==5290==__sanitizer_mz_destroy() called -- ignoring
I think this library (BiByteData) compatibility is not good.Can you test optimize it?
from swcompression.
Hi, sorry for the long response time.
I am still unable to reproduce your issue. As far I understand, you encounter this problem when using Swift 3 and iOS 9, and while SWCompression does support iOS 9.0 (simply because no iOS-specific APIs are used), Swift 3 is NOT supported by SWCompression starting with its 4.0 release. Frankly, I am quite surprised that you were even able to compile SWCompression with Swift 3 in the first place.
Additionally, I can't really investigate this problem without the zlib data/file that is causing it. If I understand correctly, you are trying to read/open data that is archived with zlib and then you encounter this crash. It would be extremely helpful if you could provide me an example of zlib-compressed data that causes SWCompression to crash.
Thank you.
from swcompression.
Related Issues (20)
- Progress when decompression is needed HOT 1
- Memory issues when working with larger files HOT 8
- [CRASH] MsbBitReader.bit() HOT 4
- AR Format Support HOT 7
- Can Gzip unarchive return Member? HOT 1
- GzipArchive.unarchive wrongMagic for short data HOT 1
- Brotli Support? HOT 2
- Symlinks in tarballs are created with absolute paths HOT 3
- BZip2Error.wrongCRC when decompressing HOT 2
- Support File I/O for large archives and resource-constrained environments
- Error when decompressing a certain 7z file HOT 2
- Some zip files can't be extracted HOT 2
- LZ4 format not compatible? HOT 8
- Compiling for watchOS fails HOT 1
- LZ4 decompress speed HOT 10
- Support splitting zips into multiple files
- Is there a way to extract a single file from a 7z compressed archive? HOT 4
- LZFSE Support
- Please update BitByteData dependency HOT 6
- Crash during GzipArchive.unarchive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swcompression.