Results 1 to 1 of 1

Thread: Cannot decompress zlib stream. Custom Format?

  1. #1
    Member
    Join Date
    May 2018
    Location
    United States
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cannot decompress zlib stream. Custom Format?

    Hello! This is my first post here

    I have thousands of files obtained from a Nintendo Switch save file that I believe are compressed with zlib (has 0x789C in the header) that I wish to decompress. However, all attempts I've made to decompress any of these files have failed with Z_DATA_ERROR. Interestingly... the decompression works normally near the beginning, but will eventually fail, or continue through the entire file but with mistakes and random chunks of repeated characters in the output. I know what the output should look like, and the partially decompressed data is valid.

    I've created a stackoverflow post better describing the issue. I hope linking to it isn't against any rules. https://stackoverflow.com/questions/...hrough-inflate

    This issue is not limited to 1 file. I have tested this on thousands of files and they all have the same problem. I've been at this for days trying to understand what's going on, and all I can think of is that some custom zlib compression was used instead of the default compression. Reaching out to the experts here

    I've attached an example file that fails to decompress at around 0x196

    Thanks for your time!
    Attached Files Attached Files

Similar Threads

  1. Finding custom LZ77 compression on binary XML data.
    By finalscream in forum Data Compression
    Replies: 0
    Last Post: 15th February 2018, 16:07
  2. Finding custom lzss on arcade game .dat file
    By finalscream in forum Data Compression
    Replies: 3
    Last Post: 11th June 2017, 04:40
  3. ZLib Stream Checker
    By Razor12911 in forum Data Compression
    Replies: 2
    Last Post: 25th May 2016, 23:16
  4. Decompress some files
    By Wuschte in forum Data Compression
    Replies: 0
    Last Post: 16th December 2015, 16:46
  5. Zlib-ng: a performance-oriented fork of zlib
    By dnd in forum Data Compression
    Replies: 0
    Last Post: 5th June 2015, 15:29

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •