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

commit bc1239b broke decompressing legacy-compressed bytes in normal mode #203

Open
hugelgupf opened this issue Feb 20, 2023 · 1 comment

Comments

@hugelgupf
Copy link

hugelgupf commented Feb 20, 2023

Patch with test to reproduce: https://gist.github.com/hugelgupf/fc7ea7c735017acfbcad61ef36632d55

Before commit bc1239b it was possible to compress using legacy mode, and decompress using the normal reader. After the commit, not possible anymore. I wrote a test case based on some tests failing in other repos. I'm not exactly sure if this is supposed to be supported or possible, or even really used, but my coworkers wrote a test case for it here.

I applied the above patch and git bisected from v4.1.14 to v4.1.17. bc1239b is what fell out.

It seems like the decoding is not broken, but the encoding in legacy mode is given the commit that broke things. So technically speaking, our use case in u-root is still working, just the test is broken for the time being.

hugelgupf added a commit to hugelgupf/dhcp that referenced this issue Feb 20, 2023
pierrec/lz4#203

Signed-off-by: Chris Koch <chrisko@google.com>
hugelgupf added a commit to insomniacslk/dhcp that referenced this issue Feb 20, 2023
pierrec/lz4#203

Signed-off-by: Chris Koch <chrisko@google.com>
@lizthegrey
Copy link
Contributor

lizthegrey commented Jun 3, 2023

It looks like this is what is causing TestWriterLegacy tests to fail, yeah?

yup, sure enough, reverting bc1239b causes tests to succeed again.

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