Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upfsck.vfat invalid memory access in get_fat #12
Comments
andreasbombe
self-assigned this
Sep 8, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
andreasbombe
Sep 12, 2015
Contributor
Thank you very much, that was a nasty one: FAT12 corruption when a certain FAT entry at the end is changed. That bug has existed since very old versions, maybe right from the start.
Fixed now.
|
Thank you very much, that was a nasty one: FAT12 corruption when a certain FAT entry at the end is changed. That bug has existed since very old versions, maybe right from the start. Fixed now. |
andreasbombe
closed this
Sep 12, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hannob commentedSep 8, 2015
This file will generate some invalid memory read in fsck.vfat:
https://crashes.fuzzing-project.org/dosfstools-get_fat-invalid-read
Judging from the output of address sanitizer and valgrind it is a bit unusual, it seems to be neither memory on the stack or heap, but it also doesn't crash the app if run without asan or valgrind. Happens both with the latest release and latest git code.
Found with american fuzzy lop.
This is the address sanitizer stack trace: