Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

C decoder does not accept valid offsets #57

Open
alexfernandez opened this issue Dec 19, 2017 · 0 comments
Open

C decoder does not accept valid offsets #57

alexfernandez opened this issue Dec 19, 2017 · 0 comments

Comments

@alexfernandez
Copy link

I have tried to decompress the attached file (inside a .zip) with node-lz4, both with useJS and without it. With useJS it works fine; without it it does not. I suspect it is an issue with the C decoder, since I think it is valid. The offending sequence is in hex:

token: f1
literal length: 12
literal: 204f63742020332031323a33373a3437206b65726e656c3a205b20202020302e30
offset: 0100

It contains a literal of length 33 and then an offset of 01, which should be valid since it indicates to copy from the previous literal.

Thanks!

offsets.lz4.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant