heap-buffer-overflow on jhead(<=2.97, 3.00)/jpgqguess.c:188 in process_DHT
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jhead (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Heap-buffer-
lbb@lbb ./jhead-2.97/jhead ./jhead-
Nonfatal Error : './jhead-
=======
==3525==ERROR: AddressSanitizer: heap-buffer-
READ of size 1 at 0x602000000094 thread T0
#0 0x40bf7e in process_DHT /home/jhead-
#1 0x408a62 in ReadJpegSections /home/jhead-
#2 0x4092ad in ReadJpegSections /home/jhead-
#3 0x4092ad in ReadJpegFile /home/jhead-
#4 0x404cb7 in ProcessFile /home/jhead-
#5 0x402a10 in main /home/jhead-
#6 0x7f836156283f in __libc_start_main (/lib/x86_
#7 0x403ca8 in _start (/home/
0x602000000094 is located 0 bytes to the right of 4-byte region [0x602000000090
allocated by thread T0 here:
#0 0x7f8361cee290 in __interceptor_
#1 0x4083e5 in ReadJpegSections /home/jhead-
#2 0x4092ad in ReadJpegSections /home/jhead-
#3 0x4092ad in ReadJpegFile /home/jhead-
#4 0x404cb7 in ProcessFile /home/jhead-
#5 0x402a10 in main /home/jhead-
#6 0x7f836156283f in __libc_start_main (/lib/x86_
SUMMARY: AddressSanitizer: heap-buffer-
Shadow bytes around the buggy address:
0x0c047fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff8000: fa fa fd fd fa fa 02 fa fa fa 02 fa fa fa 02 fa
=>0x0c047fff8010: fa fa[04]fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8060: 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
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
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
Left alloca redzone: ca
Right alloca redzone: cb
==3525==ABORTING