Page MenuHomeFreeBSD

fstyp: fix Coverity issues in hammer support
ClosedPublic

Authored by vangyzen on Jan 13 2020, 9:21 PM.
Tags
None
Referenced Files
F148480370: D23159.id66706.diff
Wed, Mar 18, 4:14 AM
Unknown Object (File)
Sun, Mar 15, 7:31 AM
Unknown Object (File)
Thu, Mar 12, 8:15 AM
Unknown Object (File)
Sat, Mar 7, 4:55 AM
Unknown Object (File)
Fri, Mar 6, 5:10 AM
Unknown Object (File)
Feb 15 2026, 10:31 PM
Unknown Object (File)
Jan 29 2026, 5:40 PM
Unknown Object (File)
Jan 25 2026, 11:26 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

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