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

_block.LZ4BlockError: Decompression failed: corrupt input or insufficient space in destination buffer #61

Open
D3vil0p3r opened this issue Nov 18, 2024 · 0 comments · May be fixed by #62

Comments

@D3vil0p3r
Copy link

D3vil0p3r commented Nov 18, 2024

I am using the latest commit of dissect.util. When I run pytest, I get:

=========================================================================== test session starts ===========================================================================
platform linux – Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
rootdir: /tmp/makepkg/python-dissect.util/src/dissect.util
configfile: pyproject.toml
plugins: typeguard-4.3.0, libtmux-0.37.0, anyio-4.4.0
collected 94 items                                                                                                                                                        

tests/test_compression.py F........                                                                                                                                 [  9%]
tests/test_cpio.py ......                                                                                                                                           [ 15%]
tests/test_crc32c.py ........                                                                                                                                       [ 24%]
tests/test_feature.py ..                                                                                                                                            [ 26%]
tests/test_plist.py .                                                                                                                                               [ 27%]
tests/test_sid.py .......                                                                                                                                           [ 35%]
tests/test_stream.py .........                                                                                                                                      [ 44%]
tests/test_ts.py ..................................................                                                                                                 [ 97%]
tests/test_xmemoryview.py ..                                                                                                                                        [100%]

================================================================================ FAILURES =================================================================================
___________________________________________________________________________ test_lz4_decompress ___________________________________________________________________________

    def test_lz4_decompress() -> None:
>       assert (
            lz4.decompress(b"\xff\x0cLZ4 compression test string\x1b\x00\xdbPtring") == b"LZ4 compression test string" \* 10
        )
E       _block.LZ4BlockError: Decompression failed: corrupt input or insufficient space in destination buffer. Error code: 7

tests/test_compression.py:11: LZ4BlockError
========================================================================= short test summary info =========================================================================
FAILED tests/test_compression.py::test_lz4_decompress - _block.LZ4BlockError: Decompression failed: corrupt input or insufficient space in destination buffer. Error code: 7
====================================================================== 1 failed, 93 passed in 0.74s =======================================================================

How can I fix it?

@D3vil0p3r D3vil0p3r linked a pull request Nov 18, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant