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

Bug when passing the same file to two arguments #11

Closed
Rog3rSm1th opened this issue Mar 13, 2022 · 0 comments · Fixed by #12
Closed

Bug when passing the same file to two arguments #11

Rog3rSm1th opened this issue Mar 13, 2022 · 0 comments · Fixed by #12
Assignees
Labels
bug Something isn't working

Comments

@Rog3rSm1th
Copy link
Owner

When passing the same file to two arguments, there is a collision in the reports folder.

For example:

import frelatage 
from PIL import Image

def fuzz_gif(input_file1, input_file2):
    Image.open(input_file)
    Image.open(input_file)

gif_file = frelatage.Input(file=True, value="image.gif")

f = frelatage.Fuzzer(fuzz_gif, [[gif_file], [gif_file]])
f.fuzz()

In the reports, both image.gif will be written in the same file, making it impossible to reproduce the bug. The structure of the report folders should therefore be modified in this way:

├── out
    │   ├── id:<crash ID>,err:<error type>,err_pos:<error>,err_file:<error file>,err_pos:<err_pos>
    │       ├── input
    │       ├── 0
    │           ├── image.gif
    │       ├── 1
    │           ├── image.gif
@Rog3rSm1th Rog3rSm1th added the bug Something isn't working label Mar 13, 2022
@Rog3rSm1th Rog3rSm1th self-assigned this Mar 13, 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

Successfully merging a pull request may close this issue.

1 participant