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

panic in src\read\coff\section.rs:330 'attempt to multiply with overflow' while fuzzing #390

Closed
DanielT opened this issue Oct 9, 2021 · 1 comment · Fixed by #391
Closed

Comments

@DanielT
Copy link

DanielT commented Oct 9, 2021

Hi,
I have a neat little tool that uses object + gimli to read elf files (I'm very happy with them by the way!)
Today I had my first go at fuzzing with afl and got a bunch of panics from object:

...
   3: object::pe::ImageSectionHeader::name<slice$<u8> >
             at /home/daniel/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.26.2/src/read/coff/section.rs:330:30
   4: object::read::coff::section::impl$8::name<slice$<u8> >
             at /home/daniel/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.26.2/src/read/coff/section.rs:255:20
...

Here is the shortest test case which produces this panic (zipped only because Github didn't accept the file directly):
afl_crash.zip

@philipc
Copy link
Contributor

philipc commented Oct 11, 2021

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

Successfully merging a pull request may close this issue.

2 participants