Segmentation fault caused by null pointer dereference during multithread processing in ucompthread, stream.c:1523
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lrzip (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi, there.
There is a segmentation caused by null pointer dereference that leads to a fatal error during the execution in the newest version 0.631.
This is the output during execution:
Decompressing...
Bad checksum: 0x5b496f91 - expected: 0x2000210c
Fatal error - exiting
Segmentation fault
To reproduce, run:
lrzip -t seg-stream1523
Here is the trace reported by ASAN:
==161258==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000080 (pc 0x00000043f8d8 bp 0x0000007cd680 sp 0x7f811dafdd80 T3)
#0 0x43f8d7 in ucompthread ../stream.c:1523
#1 0x7f81218fc6b9 in start_thread (/lib/x86_
#2 0x7f8120d2e41c in clone (/lib/x86_
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV ../stream.c:1523 ucompthread
Thread T3 created by T0 here:
#0 0x7f81221941e3 in pthread_create (/usr/lib/
#1 0x4516f3 in create_pthread ../stream.c:133
#2 0x4516f3 in fill_buffer ../stream.c:1699
#3 0x4516f3 in read_stream ../stream.c:1786
==161258==ABORTING