Page MenuHomeFreeBSD

fstyp: fix Coverity issues in hammer support
ClosedPublic

Authored by vangyzen on Jan 13 2020, 9:21 PM.
Tags
None
Referenced Files
F81566577: D23159.id66706.diff
Thu, Apr 18, 4:47 AM
F81557112: D23159.id66702.diff
Thu, Apr 18, 12:57 AM
Unknown Object (File)
Fri, Mar 22, 4:53 PM
Unknown Object (File)
Fri, Mar 22, 4:53 PM
Unknown Object (File)
Fri, Mar 22, 4:53 PM
Unknown Object (File)
Mar 8 2024, 7:09 AM
Unknown Object (File)
Dec 21 2023, 6:59 PM
Unknown Object (File)
Dec 21 2023, 6:59 PM
Subscribers

Details

Summary

Use strlcpy to guarantee NUL termination. Due to this, there is
no need for strncmp; simply use strcmp.

CID: 1412242

best_i will always be >= 0, so remove code to test otherwise.

CID: 1412244

Test Plan

Untested.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28646
Build 26673: arc lint + arc unit