HomeFreeBSD

libmp: Fix trivial buffer overrun

Description

libmp: Fix trivial buffer overrun

fgetln yields a non-NUL-terminated buffer and its length. This routine
attempted to NUL-terminate it, but did not allocate space for the NUL. So,
allocate space for the NUL.

Reported by: Coverity
CID: 1017457
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
cemAuthored on
Parents
rS299509: rpcgen(1): Tag crash() routine as __dead2 for static analyzers
Branches
Unknown
Tags
Unknown