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

OOM issue while decoding image #50

Closed
frewsxcv opened this issue Sep 11, 2016 · 1 comment
Closed

OOM issue while decoding image #50

frewsxcv opened this issue Sep 11, 2016 · 1 comment

Comments

@frewsxcv
Copy link

use std::io::{self, Read, Cursor};
use std::{intrinsics};
use std::panic;

extern crate jpeg_decoder;

use jpeg_decoder::Decoder;

fn main() {
    let mut decoder = Decoder::new(b"\xff\xd8\xff\xc2\x00\x11\x08\x30\x30\x30\x30\x03\x01\x11\x00\x30\x11\x01\x03\x11\x01" as &[u8]);
    let a = decoder.read_info();
}
cargo run --release < out2
     Running `target/release/image-fuzz`
fatal runtime error: out of memory
error: An unknown error occurred

To learn more, run the command again with --verbose.

Found using afl.rs

@kaksmet
Copy link
Member

kaksmet commented Sep 11, 2016

Thanks for reporting the issue!

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