HomeFreeBSD

Avoid buffer overflow when copying the input file name and appending .dat.

Description

Avoid buffer overflow when copying the input file name and appending .dat.

Check the return value from fread() to be sure that it was successful.

Reported by: Coverity
CID: 1006709, 1009452
MFC after: 1 week

Details

Provenance
truckmanAuthored on
Parents
rS300704: [mx25l] add Winbond w25x64 support.
Branches
Unknown
Tags
Unknown