Bug 1652621 - There is an illegal WRITE memory access at src/common-image.c:203 (function:load_image )in libcaca latest version.
Summary: There is an illegal WRITE memory access at src/common-image.c:203 (function:l...
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: libcaca
Version: rawhide
Hardware: All
OS: All
unspecified
urgent
Target Milestone: ---
Assignee: Matthias Saou
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-22 13:27 UTC by shuitao gan
Modified: 2018-12-29 14:19 UTC (History)
5 users (show)

(edit)
Clone Of:
(edit)
Last Closed:


Attachments (Terms of Use)
./img2txt POC0 (60 bytes, image/bmp)
2018-11-22 13:27 UTC, shuitao gan
no flags Details

Description shuitao gan 2018-11-22 13:27:37 UTC
Created attachment 1507942 [details]
./img2txt POC0

version: libcaca0.99beta19
Summary: 

There is an illegal WRITE memory access at src/common-image.c:203 (function:load_image )in libcaca latest version.

Description:

The asan debug is as follows:

$./img2txt POC0

=================================================================
==28346==ERROR: AddressSanitizer: SEGV on unknown address 0x6020ffff0030 (pc 0x5643f5ff307a bp 0x603000000010 sp 0x7ffde48056e0 T0)
==28346==The signal is caused by a WRITE memory access.
    #0 0x5643f5ff3079 in load_image /home/company/real/libcaca-master/src/common-image.c:203
    #1 0x5643f5ff17c7 in main /home/company/real/libcaca-master/src/img2txt.c:171
    #2 0x7fde504511c0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x211c0)
    #3 0x5643f5ff1f09 in _start (/home/company/real/libcaca-master/install_asan/bin/img2txt+0x2f09)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/company/real/libcaca-master/src/common-image.c:203 in load_image
==28346==ABORTING

Comment 1 Leonardo Taccari 2018-12-28 22:37:15 UTC
Hello shuitao!
was this reported upstream?  If not, can you please share this problem also with them?


Thank you!

Comment 2 Henri Salo 2018-12-29 03:28:19 UTC
Reported to upstream https://github.com/cacalabs/libcaca/issues/37

Comment 3 Leonardo Taccari 2018-12-29 14:19:19 UTC
Thank you very much Henri!


Note You need to log in before you can comment on or make changes to this bug.