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

Program received signal SIGFPE, Arithmetic exception. #107

Closed
fouzhe opened this issue Jun 9, 2018 · 2 comments
Closed

Program received signal SIGFPE, Arithmetic exception. #107

fouzhe opened this issue Jun 9, 2018 · 2 comments

Comments

@fouzhe
Copy link

fouzhe commented Jun 9, 2018

Hi, all. This malformed lepton file can cause crash.

Program received signal SIGFPE, Arithmetic exception. This is the input file.

Program received signal SIGFPE, Arithmetic exception.
0x00007ffff7bcb269 in raise (sig=8) at ../sysdeps/unix/sysv/linux/pt-raise.c:35
35	in ../sysdeps/unix/sysv/linux/pt-raise.c

Here is the gdb information:

(gdb) bt
#0  raise (sig=8) at ../sysdeps/unix/sysv/linux/pt-raise.c:31
#1  0x0000000000426e63 in validateAndCompress (reader=<optimized out>,
    writer=<optimized out>, header=..., header_size=<optimized out>,
    start_byte=<optimized out>, end_byte=<optimized out>,
    validation_exit_code=<optimized out>, lepton_data=<optimized out>,
    argc=<optimized out>, argv=<optimized out>, is_permissive=<optimized out>,
    is_socket=<optimized out>, permissive_jpeg_return=<optimized out>)
    at src/lepton/validation.cc:170
#2  0x0000000000410bfa in process_file (reader=<optimized out>,
    writer=<optimized out>, max_file_size=<optimized out>,
    force_zlib0=<optimized out>) at src/lepton/jpgcoder.cc:1607
#3  0x000000000040f7cc in app_main (argc=<optimized out>, argv=<optimized out>)
    at src/lepton/jpgcoder.cc:946
#4  0x00007ffff6f6f830 in __libc_start_main (main=0x4268e0 <main(int, char**)>,
    argc=3, argv=0x7fffffffe428, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7fffffffe418) at ../csu/libc-start.c:291
#5  0x0000000000403169 in _start ()
@fouzhe
Copy link
Author

fouzhe commented Jun 11, 2018

This issue got assigned CVE-2018-12108

@danielrh
Copy link
Contributor

danielrh commented Jul 5, 2018

Not sure why this one earns a CVE...the fix is literally to exit with a different exit code.
Anyhow it's fixed in 221c98a

@danielrh danielrh closed this as completed Jul 5, 2018
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