In VOLUME_ReadFATSuperblock:
- do not test on the JMP instruction: most boot blocks have that
- test instead on the "FAT" strings first, before the size
calculation
- do some parameter checking to prevent arithmetic errors
- use meaningful names instead of block offsets
(based on a rejected patch from Vincent Béron).
Showing
Please
register
or
sign in
to comment