HomeFreeBSD

MFC r300705 (compensating for fortune moving from games to usr.bin)

Description

MFC r300705 (compensating for fortune moving from games to usr.bin)

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

Details

Provenance
truckmanAuthored on
Parents
rS301177: Remove the BUGS entry in memguard's man page.
Branches
Unknown
Tags
Unknown