Commit graph

7 commits

Author SHA1 Message Date
snow flurry d45aacdcf2 dosfs: detect 0xE9 (JMP rel16) in BPB 2020-11-17 22:20:08 -08:00
snow flurry 6ab4de1ddb dosfs: use calloc instead of malloc
calloc zeroes out the memory it allocates, which helps avoid
segfaults related to linked list traversal.
2020-11-17 12:58:11 -08:00
snow flurry 7f7b05cf05 dosfs: parsing fixes
* don't include spaces in fext
* read fat12 chains properly
2020-11-17 12:55:16 -08:00
snow flurry 50f3806f15 dosfs: get_byte_offset requires an unsigned offset
No reason for it to be negative, and gcc -Wextra complains when
it's signed.
2020-11-16 20:30:41 -08:00
snow flurry e7b8a47e49 debug: remove some parentheses 2020-11-16 19:42:27 -08:00
snow flurry 9d18bc84d0 dosfs: Remove dos_fread(), add get_byte_offset()
A read() analogue wouldn't be particularly useful here since we're
just poking at bytes, but having a way to get the "real" offset in
a file sure would be!
2020-11-14 14:11:34 -08:00
snow flurry a6d33cae7c Initial commit 2020-11-13 21:43:35 -08:00