Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Assert fail in jpgcoder.cc:4157 #140

Closed
seviezhou opened this issue Aug 15, 2020 · 1 comment
Closed

Assert fail in jpgcoder.cc:4157 #140

seviezhou opened this issue Aug 15, 2020 · 1 comment

Comments

@seviezhou
Copy link

System info

Ubuntu x86_64, gcc (Ubuntu 5.5.0-12ubuntu1), lepton (latest master 3d1bc1)

Configure

CFLAGS="-g -fsanitize=address" LDFLAGS="-fsanitize=address" ./configure

Command line

./lepton -unjailed @@ /tmp/lep.jpg

Output

Assert Failed: false && "Data not properly zlib coded" at (src/lepton/jpgcoder.cc:4157)
Aborted

POC

assert-fail-jpgcoder-4157.zip

@danielrh
Copy link
Contributor

This is currently by design... the compressor is designed to be run as a separate process to compress images. Assert fail results in a nonzero exit code, meaning the image is not supported... you can use the permissive flag to work around the issue

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

No branches or pull requests

2 participants