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 when reading tag from fuzzed file #25

Open
5225225 opened this issue Dec 31, 2021 · 1 comment
Open

OOM when reading tag from fuzzed file #25

5225225 opened this issue Dec 31, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@5225225
Copy link

5225225 commented Dec 31, 2021

Reproduction code

fn main() {
    let data = [0, 0, 0, 1, 102, 116, 121, 112, 0, 132, 255, 255, 255, 255, 0, 132];
    let mut data = std::io::Cursor::new(data);
    let tag = mp4ameta::Tag::read_from(&mut data);
}

Results in

memory allocation of 37436171902451828 bytes failed
zsh: abort (core dumped)  cargo run
@Saecki
Copy link
Owner

Saecki commented Jan 1, 2022

Oh, there should be some sort of sanity check.

@Saecki Saecki added the bug Something isn't working label Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants