Page MenuHomeFreeBSD

The condition can never be true
ClosedPublic

Authored by bret_ketchum_dell.com on Aug 21 2020, 3:09 PM.
Tags
None
Referenced Files
F161280726: D26144.diff
Thu, Jul 2, 9:52 AM
Unknown Object (File)
Sat, Jun 27, 9:35 PM
Unknown Object (File)
Sun, Jun 21, 2:28 PM
Unknown Object (File)
Sat, Jun 20, 12:52 AM
Unknown Object (File)
Fri, Jun 19, 8:02 PM
Unknown Object (File)
Fri, Jun 19, 2:18 PM
Unknown Object (File)
May 30 2026, 2:27 PM
Unknown Object (File)
May 18 2026, 1:07 PM
Subscribers

Details

Summary

Coverity flagged this condition: The and condition offset == 0 && offset == 65535 can never be true because offset cannot be equal to two different values at the same time

Diff Detail

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

Event Timeline

The same fix is applied in illumos (detected by smatch).

This revision is now accepted and ready to land.Aug 21 2020, 4:55 PM
This revision was automatically updated to reflect the committed changes.