PeachOS icon indicating copy to clipboard operation
PeachOS copied to clipboard

fat16.c - incorrect value for last cluster in file

Open howardthuang opened this issue 2 years ago • 1 comments

https://github.com/nibblebits/PeachOS/blob/master/src/fs/fat/fat16.c#L411:

if (entry == 0xFF8 || entry == 0xFFF)

This line is checking if the cluster entry is the last cluster in a file. However, the value it is checking for is incorrect. The EOC (end of chain) mark for FAT16 should be 0xFFF8 - 0xFFFF.

howardthuang avatar Aug 01 '23 18:08 howardthuang

Thank you for fileing the issue report

nibblebits avatar Aug 01 '23 20:08 nibblebits