nodeca / pako

high speed zlib port to javascript, works in browser & node.js

Home Page:http://nodeca.github.io/pako/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: invalid distance too far back

yupkey opened this issue · comments

commented

This issue is present with large size data. Please update zlib version to at least 1.2.9 to fix that issue.
https://github.com/madler/zlib/blob/master/ChangeLog

Isn't this dupe of #139 (comment)?

Could you provide example how to reproduce (if not dupe), or refer to commit in upstream with fix?

commented

I have to set chunkSize option in order to work with large data
pako.inflate(new Uint8Array(compressed), { to: 'string', chunkSize: 1024*1024 })
Thanks for linking to #139