Page MenuHomeFreeBSD

Fix numerous Coverity issues in mptutil
ClosedPublic

Authored by asomers on May 31 2017, 4:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 8, 12:55 PM
Unknown Object (File)
Mon, Oct 6, 11:02 PM
Unknown Object (File)
Sep 15 2025, 4:57 AM
Unknown Object (File)
Sep 13 2025, 8:28 PM
Unknown Object (File)
Sep 11 2025, 8:51 AM
Unknown Object (File)
Aug 15 2025, 5:05 AM
Unknown Object (File)
Aug 14 2025, 2:30 PM
Unknown Object (File)
Jul 17 2025, 6:52 AM
Subscribers

Details

Summary

Fix numerous Coverity issues in mptutil

Most are memory or file descriptor leaks. Three were unannotated
fallthroughs in a switch/case statement. One was an integer overflow before
widen.

Reported by: Coverity
CID: 1007463 1007462 1007461 1007460 1007459 1007458 1007457
CID: 1006855 1006854 1006853 1006852 1006851 1006850 1006849
CID: 1006848 1006845 1006844 1006843 1006842 1006841 1006840
CID: 1006839 1006838 1006837 1006836 1006835 1006834 1006833
CID: 1006832 1006831 1006831 1006830 1006829 1008334 1008170
CID: 1008169 1008168

Test Plan

I don't have the hardware. Scott, are you able to test these
changes.

Diff Detail

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

Event Timeline

@scottl @imp can either of you test this change? If not, I'll abandon it.

This revision was not accepted when it landed; it landed in state Needs Review.Feb 23 2018, 12:18 AM
This revision was automatically updated to reflect the committed changes.