Page MenuHomeFreeBSD

makefs: Remove impossible if condition
ClosedPublic

Authored by emaste on Dec 29 2024, 2:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 5, 11:17 PM
Unknown Object (File)
Tue, Mar 4, 6:54 AM
Unknown Object (File)
Mon, Feb 17, 2:24 AM
Unknown Object (File)
Feb 12 2025, 4:09 AM
Unknown Object (File)
Feb 8 2025, 5:19 AM
Unknown Object (File)
Feb 6 2025, 6:04 PM
Unknown Object (File)
Jan 16 2025, 5:17 AM
Unknown Object (File)
Jan 13 2025, 6:42 PM
Subscribers

Details

Summary

This test is inside the else block for if (*oldname == '.'), so *oldname cannot be '.' here.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste created this revision.
This revision is now accepted and ready to land.Dec 29 2024, 7:18 PM

This seems like the kind of thing Coverity should notice- any other lower-hanging fruit like this buried in Coverity results, by chance?

Coverity has two reports against cd9660.c. (And as an aside, doesn't have a great user interface for finding issues in a specific file.)

  • The buffer will be filled with ASCII character '0' instead of actual zero bytes. which someone (probably me?) set to ignore some time ago.
  • In cd9660_convert_structure: Leak of memory or pointers to system resources (CWE-404)

No issues like this one.

This revision was automatically updated to reflect the committed changes.