Skip to content

OOM issue while decoding image #50

Closed

Description

@frewsxcv
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

Activity

  1. kaksmet commented on Sep 11, 2016

    @kaksmet
    Member

    Thanks for reporting the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions