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)
Details
Details
- Reviewers
markj - Commits
- rS289845: Fix various Coverity issues in sbin/savecore/savecore.c:
Create and save dumps with various savecore options
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
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. |