out-of-bounds write in coders/pict.c:1929
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:000055,
=======
==19754==ERROR: AddressSanitizer: heap-buffer-
WRITE of size 1 at 0xb391c4b8 thread T0
#0 0x881fdb4 in WritePICTImage /home/user/
#1 0x824e050 in WriteImage /home/user/
#2 0x824fb98 in WriteImages /home/user/
#3 0x8144026 in ConvertImageCommand /home/user/
#4 0x8165066 in MagickCommand /home/user/
#5 0x81ed0dc in GMCommandSingle /home/user/
#6 0x81ea204 in GMCommand /home/user/
#7 0x80d4a76 in main /home/user/
#8 0xb754fa82 in __libc_start_main /build/
#9 0x80d4904 in _start (/home/
0xb391c4b8 is located 0 bytes to the right of 32952-byte region [0xb3914400,
allocated by thread T0 here:
#0 0x80bd531 in __interceptor_
#1 0x839bb38 in MagickMalloc /home/user/
#2 0x824e050 in WriteImage /home/user/
#3 0x824fb98 in WriteImages /home/user/
SUMMARY: AddressSanitizer: heap-buffer-
Shadow bytes around the buggy address:
0x36723840: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x36723850: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x36723860: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x36723870: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x36723880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x36723890: 00 00 00 00 00 00 00[fa]fa fa fa fa fa fa fa fa
0x367238a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x367238b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x367238c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x367238d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x367238e0: 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
==19754==ABORTING
input file to trigger crash