heap-buffer-overflow on jhead-3.04/exif.c:336 Get32s
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jhead (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
heap-buffer-
lbb@lbb ./jhead ./input/id_043
Nonfatal Error : './input/id_043' Suspicious offset of first Exif IFD value
Nonfatal Error : './input/id_043' Maximum Exif directory nesting exceeded (corrupt Exif header)
Nonfatal Error : './input/id_043' Illegal number format 32768 for tag 1000 in Exif
Nonfatal Error : './input/id_043' Maximum Exif directory nesting exceeded (corrupt Exif header)
Nonfatal Error : './input/id_043' Illegal number format 95 for Exif gps tag 002a
Nonfatal Error : './input/id_043' Illegal number format 62152 for Exif gps tag 91bf
Nonfatal Error : './input/id_043' Illegal number format 65529 for Exif gps tag ffff
Nonfatal Error : './input/id_043' Illegal number format 0 for Exif gps tag 00ff
Nonfatal Error : './input/id_043' Illegal number format 0 for Exif gps tag 7c00
Nonfatal Error : './input/id_043' Inappropriate format (4) for Exif GPS coordinates!
Nonfatal Error : './input/id_043' Illegal number format 65535 for Exif gps tag 1f00
Nonfatal Error : './input/id_043' Illegal number format 128 for Exif gps tag 0010
Nonfatal Error : './input/id_043' Illegal number format 0 for Exif gps tag 0087
Nonfatal Error : './input/id_043' Illegal number format 128 for Exif gps tag 0010
Nonfatal Error : './input/id_043' Illegal number format 0 for Exif gps tag 0087
Nonfatal Error : './input/id_043' Illegal number format 0 for Exif gps tag 0092
Nonfatal Error : './input/id_043' Illegal number format 0 for Exif gps tag 0088
Nonfatal Error : './input/id_043' Illegal number format 257 for Exif gps tag 2d00
Nonfatal Error : './input/id_043' Illegal number format 23110 for Exif gps tag 4146
Nonfatal Error : './input/id_043' Inappropriate format (12) for Exif GPS coordinates!
=======
==25863==ERROR: AddressSanitizer: heap-buffer-
READ of size 1 at 0x611000009fdd thread T0
#0 0x40aefe in Get32s /home/lbb/
#1 0x4115dc in ProcessGpsInfo /home/lbb/
#2 0x40d9a3 in ProcessExifDir /home/lbb/
#3 0x40d91c in ProcessExifDir /home/lbb/
#4 0x40d91c in ProcessExifDir /home/lbb/
#5 0x40d91c in ProcessExifDir /home/lbb/
#6 0x40d91c in ProcessExifDir /home/lbb/
#7 0x40e09a in process_EXIF /home/lbb/
#8 0x408318 in ReadJpegSections /home/lbb/
#9 0x408581 in ReadJpegFile /home/lbb/
#10 0x405039 in ProcessFile /home/lbb/
#11 0x40267d in main /home/lbb/
#12 0x7ff18ec8a82f in __libc_start_main (/lib/x86_
#13 0x403c38 in _start (/home/
0x611000009fdd is located 3 bytes to the right of 218-byte region [0x611000009f00
allocated by thread T0 here:
#0 0x7ff18f3d5602 in malloc (/usr/lib/
#1 0x40798b in ReadJpegSections /home/lbb/
#2 0x408581 in ReadJpegFile /home/lbb/
#3 0x405039 in ProcessFile /home/lbb/
#4 0x40267d in main /home/lbb/
#5 0x7ff18ec8a82f in __libc_start_main (/lib/x86_
SUMMARY: AddressSanitizer: heap-buffer-
Shadow bytes around the buggy address:
0x0c227fff93a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c227fff93b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c227fff93c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c227fff93d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c227fff93e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c227fff93f0: 00 00 00 00 00 00 00 00 00 00 00[02]fa fa fa fa
0x0c227fff9400: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c227fff9410: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c227fff9420: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c227fff9430: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c227fff9440: 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
==25863==ABORTING