Page MenuHomeFreeBSD

makefs: Remove impossible if condition
ClosedPublic

Authored by emaste on Sun, Dec 29, 2:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 9, 8:06 AM
Unknown Object (File)
Mon, Jan 6, 2:55 AM
Unknown Object (File)
Mon, Jan 6, 2:19 AM
Unknown Object (File)
Mon, Jan 6, 12:10 AM
Unknown Object (File)
Mon, Jan 6, 12:01 AM
Unknown Object (File)
Fri, Jan 3, 10:56 PM
Unknown Object (File)
Wed, Jan 1, 6:08 PM
Unknown Object (File)
Sun, Dec 29, 8:30 PM
Subscribers

Details

Summary

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

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.
This revision is now accepted and ready to land.Sun, Dec 29, 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.