HomeFreeBSD

Fix a couple of new instances of a false positive Coverity buffer

Description

Fix a couple of new instances of a false positive Coverity buffer
overflow defect. Use the new CCB_CLEAR_ALL_EXCEPT_HDR() macro
instead of the calling bzero() on the pointer to the header used
as an array and indexed by 1.

Don't leak a buffer after executing "goto restart_report" by
overwriting its pointer with the results of another calloc().
Be sure to clear the buffer before reusing it. (CID 1356042)

Reported by: Coverity
CID: 1356022, 1356034, 1356023, 1356035, 1356042
Reviewed by: ken

Details

Provenance
truckmanAuthored on
Reviewer
ken
Parents
rS300684: sed: convert sed to use REG_STARTEND more explicitly.
Branches
Unknown
Tags
Unknown