avsa242 / sdfat-spin

FAT-fs on SD implementation for the P8X32A/Propeller, P2X8C4M64P/Propeller 2
Other
0 stars 0 forks source link

fseek(): doesn't follow chain to other FAT sectors #28

Open avsa242 opened 6 months ago

avsa242 commented 6 months ago

A file's cluster chain could continue from one FAT sector to another, but the loop that follows the chain doesn't advance to other sectors. It's actually written pretty naiively, just repeating a number of times equal to the number of clusters the file uses. This could just walk right off the end of the metadata buffer.