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

Huanglei3 reported a bug in lrzip that is not duplicated here #131

Closed
pete4abw opened this issue Aug 1, 2023 · 3 comments
Closed

Huanglei3 reported a bug in lrzip that is not duplicated here #131

pete4abw opened this issue Aug 1, 2023 · 3 comments
Labels

Comments

@pete4abw
Copy link
Owner

pete4abw commented Aug 1, 2023

heap-buffer-overflow in libzpaq/libzpaq.cpp:1208:25 libzpaq::PostProcessor::write(int)

@huanglei3 , this type of POC work is counterproductive. Yes, lrzip crashes, but lrzip-next does not. See output below (your filenames have been renamed). But, of course, your file is borked, so lrzip-next does crash during decompression. But we use ZPAQ version 7.15.

$ lrzip-next -vvt huanglei3.poc
The following options are in effect for this INTEGRITY TEST.
Threading is ENABLED. Number of CPUs detected: 8
Detected 16,538,464,256 bytes ram
Nice Value: 19
Show Progress
Max Verbose
Test file integrity
Temporary Directory set as: /tmp/
Malloced 5,512,818,688 for tmp_outbuf
Detected lrzip version 0.6 file.
MD5 being used for integrity testing.
Validating file for consistency...[OK]
Detected lrzip version 0.6 file.
Decompressing...

Reading chunk_bytes at 24
Expected size: 6,036
Chunk byte width: 2
Reading eof flag at 25
EOF: 1
Reading expected chunksize at 26
Chunk size: 6,036
Reading stream 0 header at 29
Reading stream 1 header at 36
Reading ucomp header at 1,031
Fill_buffer stream 0 c_len 10 u_len 10 last_head 0
Starting thread 0 to decompress 10 bytes from stream 0
Thread 0 decompressed 10 bytes from stream 0
Taking decompressed data from thread 0
Reading ucomp header at 43
Fill_buffer stream 1 c_len 981 u_len 6,036 last_head 1,019
Starting thread 1 to decompress 981 bytes from stream 1
Reading ucomp header at 1,048
Fill_buffer stream 1 c_len 0 u_len 0 last_head 0
Skipping empty match block
ZPAQ Error: Empty PCOMP
@huanglei3
Copy link

hi,when i install lrzip-next,i met some errors:
checking libbz3.h presence... no
checking for libbz3.h... no
configure: error: libbz3.h not found. Install libbz3-dev

but no package libbz3-dev.
install bzip3 first?

@pete4abw
Copy link
Owner Author

pete4abw commented Aug 4, 2023

Yes, bzip3 library is a dependency, but my error message is NOT accurate! Thank you I will fix.
Package libbzip3-dev is what you want.

@pete4abw
Copy link
Owner Author

pete4abw commented Aug 5, 2023

Closed in #132

@pete4abw pete4abw closed this as completed Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants