Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] a reachable assert in stbi__create_png_image_raw #163

Open
kdsjZh opened this issue Mar 19, 2022 · 0 comments
Open

[BUG] a reachable assert in stbi__create_png_image_raw #163

kdsjZh opened this issue Mar 19, 2022 · 0 comments

Comments

@kdsjZh
Copy link

kdsjZh commented Mar 19, 2022

Describe the bug
There is a reachable assert bug found in stbi__create_png_image_raw, can be triggered via img2sixel+ ASan

To Reproduce
compile the program with CFLAGS="-fsanitize=address" CC=clang
then run ./img2sixel $POC
output:

img2sixel: ./stb_image.h:4374: int stbi__create_png_image_raw(stbi__png *, stbi_uc *, stbi__uint32, int, stbi__uint32, stbi__uint32, int, int): Assertion `img_width_bytes <= x' failed.
Aborted

system
ubuntu 16.04,
clang 12.0.1
libsixel latest commit 6a5be8b

Credit
Han Zheng
NCNIPC of China
Hexhive

POC
poc.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant