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

Attempt to write out of bounds in the flash #130

Closed
pjsg opened this issue Jan 24, 2017 · 2 comments
Closed

Attempt to write out of bounds in the flash #130

pjsg opened this issue Jan 24, 2017 · 2 comments

Comments

@pjsg
Copy link
Contributor

pjsg commented Jan 24, 2017

The following sequence of operations results in an out-of-bounds write:

  open("6file6.xxxxxxxxxxxxxx", 0x1e) -> 4097
  write(4097, , 1014) -> 1014
  write(4097, , 63) -> 63
  remove("6file6.xxxxxxxxxxxxxx")
  close(4097)
  open("6file6.xxxxxxxxxxxxxx", 0x1e) -> 4097
  write(4097, , 1014)          FATAL write addr too high 01fff00c + 00000002 > 00007000

This is one of the test cases found by AFL (PR #100).

This is just open, write, write, remove, close. Then open, write all on the same file.

@pellepl
Copy link
Owner

pellepl commented Jan 26, 2017

Thanks @pjsg, I'll look into it. I plan to do a complete overhaul of the fuzzing cases you've found so far - I haven't forgot it and really appreciate the effort. I looked at some of them briefly before, one of them is an extreme case of configuration. There was some planning adding extra error codes preventing such configs from the start, but something came in the way.

@pellepl
Copy link
Owner

pellepl commented Jul 15, 2017

Fixed by 03e4f80

@pellepl pellepl closed this as completed Jul 15, 2017
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