You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the project is compiled for 64-bit system, and the configure flag --disable-imlib2 was given. Then the pointer returned from _caca_alloc2d() call in load_image() at common-image.c is truncated to 32-bit with sign extension, later causing a SEGV writing to an invalid memory area.
The text was updated successfully, but these errors were encountered:
tin-z
changed the title
[Bug] Truncated return value after _caca_alloc2d() call
[Bug] Integer overflow on the return value after _caca_alloc2d() call
Mar 21, 2022
Describe the bug
If the project is compiled for 64-bit system, and the configure flag
--disable-imlib2
was given. Then the pointer returned from _caca_alloc2d() call in load_image() at common-image.c is truncated to 32-bit with sign extension, later causing a SEGV writing to an invalid memory area.libcaca/src/common-image.c
Lines 163 to 173 in f42aa68
System info:
Steps to reproduce the behavior
./src/img2txt POC
Output
POC
The text was updated successfully, but these errors were encountered: