heap buffer overflow crashes on proccess_COM
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jhead (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
=======
==31194==ERROR: AddressSanitizer: heap-buffer-
READ of size 1 at 0x60700000df13 thread T0
#0 0x41b5df in process_COM /home/mondaylor
#1 0x41d882 in ReadJpegSections /home/mondaylor
#2 0x41f62d in ReadJpegSections /home/mondaylor
#3 0x41f62d in ReadJpegFile /home/mondaylor
#4 0x411987 in ProcessFile /home/mondaylor
#5 0x4036ca in main /home/mondaylor
#6 0x7f2a2e63f83f in __libc_start_main (/lib/x86_
#7 0x40d498 in _start (/home/
0x60700000df13 is located 0 bytes to the right of 67-byte region [0x60700000ded0
allocated by thread T0 here:
#0 0x7f2a2fa97602 in malloc (/usr/lib/
#1 0x41beaa in ReadJpegSections /home/mondaylor
#2 0x41f62d in ReadJpegSections /home/mondaylor
#3 0x41f62d in ReadJpegFile /home/mondaylor
#4 0x411987 in ProcessFile /home/mondaylor
#5 0x4036ca in main /home/mondaylor
#6 0x7f2a2e63f83f in __libc_start_main (/lib/x86_
SUMMARY: AddressSanitizer: heap-buffer-
Shadow bytes around the buggy address:
0x0c0e7fff9b90: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e7fff9ba0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e7fff9bb0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e7fff9bc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e7fff9bd0: fa fa fa fa fa fa fa fa fa fa 00 00 00 00 00 00
=>0x0c0e7fff9be0: 00 00[03]fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c0e7fff9bf0: 03 fa fa fa fa fa 00 00 00 00 00 00 00 00 00 00
0x0c0e7fff9c00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e7fff9c10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e7fff9c20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e7fff9c30: 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
==31194==ABORTING