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

lepton crash with specific image #150

Open
ConcoctionSec opened this issue Sep 18, 2021 · 0 comments
Open

lepton crash with specific image #150

ConcoctionSec opened this issue Sep 18, 2021 · 0 comments

Comments

@ConcoctionSec
Copy link

ConcoctionSec commented Sep 18, 2021

Version

lepton v1.0-

Environment

Ubuntu 18.04,64 bit

Command

Compile test program:

$ mkdir -p build
$ cd build
$ cmake ..
$ make -j8

Result

$ ./lepton -unjailed crash01.jpg out.lep

lepton v1.0-
START ACHIEVED 1631859398 47796
size mismatch in marker segment FF D4TS_MAIN	(0)	0.000000
TS_MODEL_INIT_BEGIN	(0)	0.000365
TS_MODEL_INIT	(0)	0.001008
TS_THREAD_STARTED	(0)	0.001008
TS_READ_STARTED	(0)	0.001058
TS_READ_FINISHED	(0)	0.001932
TS_JPEG_DECODE_STARTED	(0)	0.001932
TS_JPEG_DECODE_FINISHED	(0)	0.001935
TS_DONE	(0)	0.001936
4309848084 bytes needed to decompress this file
UNSUPPORTED_JPEG
SHORT_READ

Issue address:#101

./lepton -unjailed -permissive /crash01.jpg out.lep

lepton v1.0-
Input file unable to be opened for writing:/crash01.jpg
read: Bad file descriptor
Failed to read 2 byte header
UNSUPPORTED_JPEG

Description

We have encountered an issue with lepton when encoding specific jpg image.

Poc

Poc file is this.

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

1 participant