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)
Sun, May 12, 6:15 AM
Unknown Object (File)
Mon, May 6, 9:50 AM
Unknown Object (File)
Fri, May 3, 10:50 AM
Unknown Object (File)
Wed, May 1, 5:36 PM
Unknown Object (File)
Sat, Apr 27, 6:47 PM
Unknown Object (File)
Apr 14 2024, 5:26 PM
Unknown Object (File)
Apr 8 2024, 1:53 PM
Unknown Object (File)
Mar 12 2024, 11:08 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.