olefile
olefile copied to clipboard
Bug in write_sect() data length check
When checking the length of the data to write to a sector, the code correctly checks if it is smaller than the sector size, but fails to check if the data is larger than the sector size because the same comparison operator is used. The elif statement should have a ">" sign.