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

Assert fail in nd_array.hh:158 #139

Closed
seviezhou opened this issue Aug 4, 2020 · 3 comments
Closed

Assert fail in nd_array.hh:158 #139

seviezhou opened this issue Aug 4, 2020 · 3 comments

Comments

@seviezhou
Copy link

System info

Ubuntu X64, 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

START ACHIEVED 1596549152 171035
Assert Failed: i0 < s0 at (src/lepton/../vp8/util/nd_array.hh:158)
SHORT_READAborted

POC

assert-fail-nd_array-158.zip

@danielrh
Copy link
Contributor

seems like you found an interesting issue...I'll look into it
was this a specially crafted .lep file?

@seviezhou
Copy link
Author

Yes, it is a crafted .lep file, maybe not valid.

@danielrh
Copy link
Contributor

Ya it's not a valid file, but thanks for reporting. We generally use assert to validate the file format since the idea is to run a separate copy of lepton for each decode to enable jailing

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