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

Segfault from TransformPaletteC::process() #550

Open
jihyunhillpark opened this issue Jan 3, 2020 · 1 comment
Open

Segfault from TransformPaletteC::process() #550

jihyunhillpark opened this issue Jan 3, 2020 · 1 comment

Comments

@jihyunhillpark
Copy link

Hi.

I found that the encoder of commit b36d310 crashes for a segfault when it runs with attached test.png. The test was ran on Ubuntu 18.04.3 with kernel 4.15.0-72-generic with x86_64. The crash can be reproduced by the following command.

$ flif test.png target.flif --overwrite

Here’s the the crash stack trace taken with GDB:

#0 0x0000555555676853 in TransformPaletteC::process () at transform/palette_C.hpp:130
#1 0x000055555574af78 in flif_encode () at flif-enc.cpp:914
#2 0x00005555555b3681 in encode_flif () at flif.cpp:344
#3 0x0000555555564dbf in main () at flif.cpp:763

This crash was found with AFL fuzzer, and test.png is originated from not_kitty_alpha.png of the AFL seed corpus.

Hope this help.

test

@bjorn3
Copy link

bjorn3 commented Jan 3, 2020

Development of FLIF has basically stopped. The last comment was 1 year ago. Also several other memory corruption bugs remain unfixed. For example #541.

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

2 participants