GithubHelp home page GithubHelp logo

Comments (9)

tsolomko avatar tsolomko commented on July 19, 2024

While I haven't checked, I think that it should support ios9.

from swcompression.

yuanjunxiao avatar yuanjunxiao commented on July 19, 2024

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.

tsolomko avatar tsolomko commented on July 19, 2024

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.

tsolomko avatar tsolomko commented on July 19, 2024

I guess, I should have also asked: what version of SWCompression are you using?

from swcompression.

yuanjunxiao avatar yuanjunxiao commented on July 19, 2024

'SWCompression', '~> 4.5.0' I am a real ios9.3.5 crash

from swcompression.

tsolomko avatar tsolomko commented on July 19, 2024

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.

yuanjunxiao avatar yuanjunxiao commented on July 19, 2024

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.

yuanjunxiao avatar yuanjunxiao commented on July 19, 2024

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.

tsolomko avatar tsolomko commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.