Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

did not start with 'ZV' signature bytes #44

Closed
usergoodvery opened this issue Apr 2, 2017 · 5 comments
Closed

did not start with 'ZV' signature bytes #44

usergoodvery opened this issue Apr 2, 2017 · 5 comments

Comments

@usergoodvery
Copy link

Hi,
I am running this on android, parsing incoming packets compressed with the original c implementation, but it seems I am hitting a potential interoperability problem, as I am seeing:

Corrupt input data, block #0 (at offset 0): did not start with 'ZV' signature bytes

On the originating side I do test compression/decompressing on the same target buffer and that succeeds, as I can read the data back.
Are there any known issues working with that c implementation?

regards,

@cowtowncoder
Copy link
Contributor

As far as I know, first couple of bytes should be compatible with the command-line tool.
However I don't know of formal specification so it is difficult to say for sure.
I do know there are some implementations that do not do this.

Which platform is this on?

@cowtowncoder
Copy link
Contributor

Also: it would be interesting to see what first couple of bytes are. I think other codecs leave out Z and V but then follow with expected type byte (0x00 or 0x01).

@usergoodvery
Copy link
Author

I am not actually using command line tool; I am compressing from withing my application (linux) using the original reference lzf implementation (http://oldhome.schmorp.de/marc/liblzf.html). Your documentation seems to suggest interoperability with that.

@cowtowncoder
Copy link
Contributor

cowtowncoder commented Apr 4, 2017

@usergoodvery to the best of my knowledge, yes, original codec used this encoding. Command-line utilities use liblzf as well I think. As far as I know, Java algorithm used is indeed direct translation of original C version (at least starting point was); no changes were made to logic.

If you want further help, you would need to see what encoded results with embedded algorithm are.

@usergoodvery
Copy link
Author

Thanks I'll peek at the first few bytes to get a feel of what's being stashed in there...

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

No branches or pull requests

2 participants