Page MenuHomeFreeBSD

Fix various Coverity issues in savecore
ClosedPublic

Authored by asomers on Oct 23 2015, 3:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 30, 3:43 AM
Unknown Object (File)
Mon, Apr 29, 7:13 PM
Unknown Object (File)
Mon, Apr 29, 6:49 PM
Unknown Object (File)
Apr 9 2024, 10:45 AM
Unknown Object (File)
Mar 28 2024, 11:33 AM
Unknown Object (File)
Mar 14 2024, 11:42 PM
Unknown Object (File)
Feb 7 2024, 8:01 AM
Unknown Object (File)
Jan 5 2024, 3:03 PM
Subscribers

Details

Summary

Fix various Coverity issues in savecore.c:
CID1009429: Fix unchecked return value from lseek while clearing dump
CID1007781: Fix file descriptor leak in DoFile
CID1007261: Don't send potentially unterminated string to syslog(3)

Test Plan

Create and save dumps with various savecore options

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

asomers retitled this revision from to Fix various Coverity issues in savecore.
asomers updated this object.
asomers edited the test plan for this revision. (Show Details)
asomers added a reviewer: markj.
markj edited edge metadata.
markj added inline comments.
sbin/savecore/savecore.c
731 ↗(On Diff #9660)

Missing parens for sizeof. It also feels a bit unusual to me to have the write() call on the RHS here.

This revision is now accepted and ready to land.Oct 23 2015, 5:53 PM
This revision was automatically updated to reflect the committed changes.