PaulStoffregen / USBHost_t36

USB Host Library for Teensy 3.6 and 4.0
170 stars 87 forks source link

MSCFile.read() possible underflow #106

Open pr8x opened 1 year ago

pr8x commented 1 year ago

mscfatfile.read returns -1 in case of an error. However MSCFile::read is returning size_t (aka unsigned int), which will underflow in case of an error.