out-of-bounds read in coders/psd.c:1435
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
graphicsmagick (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
This bug was found while fuzzing graphicsmagick with afl-fuzz
Tested on hg changeset 14720:3b1f1e0c1098
Command: gm convert id:000063,
=======
==30047==ERROR: AddressSanitizer: heap-buffer-
READ of size 4 at 0xb3c03ffc thread T0
#0 0x88a783d in ReadPSDImage /home/user/
#1 0x8244d62 in ReadImage /home/user/
#2 0x812c3ac in ConvertImageCommand /home/user/
#3 0x8165066 in MagickCommand /home/user/
#4 0x81ed0dc in GMCommandSingle /home/user/
#5 0x81ea204 in GMCommand /home/user/
#6 0x80d4a76 in main /home/user/
#7 0xb7508a82 in __libc_start_main /build/
#8 0x80d4904 in _start (/home/
AddressSanitizer can not describe address in more detail (wild memory access suspected).
SUMMARY: AddressSanitizer: heap-buffer-
Shadow bytes around the buggy address:
0x367807a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x367807b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x367807c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x367807d0: 00 00 00 00 00 00 04 fa fa fa fa fa fa fa fa fa
0x367807e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x367807f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa[fa]
0x36780800: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x36780810: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x36780820: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x36780830: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x36780840: 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
ASan internal: fe
==30047==ABORTING
input file to trigger crash