Page MenuHomeFreeBSD

Fix Coverity CIDs 1356044 and 1356045 Unintended sign extension
ClosedPublic

Authored by truckman on May 25 2016, 8:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 18 2024, 11:33 AM
Unknown Object (File)
Dec 20 2023, 1:11 AM
Unknown Object (File)
Oct 21 2023, 12:46 AM
Unknown Object (File)
Oct 19 2023, 12:06 PM
Unknown Object (File)
Oct 18 2023, 12:50 AM
Unknown Object (File)
Oct 17 2023, 1:42 PM
Unknown Object (File)
Oct 13 2023, 8:53 PM
Unknown Object (File)
Sep 9 2023, 8:14 AM
Subscribers

Details

Reviewers
ken
Summary

When shifting an unsigned byte into the upper 8 bits of
an int and the resulting value is greater than 0x7FFFFFF,
the result will be sign extended when converting to a 64
bit unsigned long.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3945
Build 3988: arc lint + arc unit

Event Timeline

truckman retitled this revision from to Fix Coverity CIDs 1356044 and 1356045 Unintended sign extension.
truckman updated this object.
truckman edited the test plan for this revision. (Show Details)
truckman added a reviewer: ken.
ken edited edge metadata.

Looks good, thank you!

This revision is now accepted and ready to land.May 25 2016, 12:11 PM