heap-buffer-overflow on jhead-3.04/jpgfile.c:285 ReadJpegSections
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jhead (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
fstark@
=======
==957==ERROR: AddressSanitizer: heap-buffer-
READ of size 4 at 0x60200000efd2 thread T0
#0 0x7f6d38f94675 in memcmp (/usr/lib/
#1 0x40e810 in ReadJpegSections /home/fstark/
#2 0x410e86 in ReadJpegSections /home/fstark/
#3 0x410e86 in ReadJpegFile /home/fstark/
#4 0x40858b in ProcessFile /home/fstark/
#5 0x402f2c in main /home/fstark/
#6 0x7f6d3886a83f in __libc_start_main (/lib/x86_
#7 0x406708 in _start (/home/
0x60200000efd2 is located 0 bytes to the right of 2-byte region [0x60200000efd0
allocated by thread T0 here:
#0 0x7f6d38fb5602 in malloc (/usr/lib/
#1 0x40e4a8 in ReadJpegSections /home/fstark/
SUMMARY: AddressSanitizer: heap-buffer-
Shadow bytes around the buggy address:
0x0c047fff9da0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9db0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9dc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9dd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9de0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c047fff9df0: fa fa fa fa fa fa fa fa fa fa[02]fa fa fa 02 fa
0x0c047fff9e00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9e10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9e20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9e30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9e40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
==957==ABORTING
Changed in jhead (Ubuntu): | |
status: | New → Confirmed |