Page MenuHomeFreeBSD

Fix undefined behavior: left-shifting into the sign bit.
ClosedPublic

Authored by kib on Dec 21 2019, 5:05 PM.
Tags
None
Referenced Files
F137254819: D22898.id65892.diff
Fri, Nov 21, 8:34 PM
Unknown Object (File)
Thu, Nov 20, 8:31 PM
Unknown Object (File)
Thu, Nov 20, 8:27 PM
Unknown Object (File)
Thu, Nov 20, 8:25 PM
Unknown Object (File)
Thu, Nov 20, 8:13 PM
Unknown Object (File)
Sun, Nov 16, 12:00 AM
Unknown Object (File)
Sun, Oct 26, 11:26 AM
Unknown Object (File)
Sat, Oct 25, 1:29 PM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 28277

Event Timeline

This revision is now accepted and ready to land.Dec 21 2019, 6:58 PM

LGTM. Are any users of the macros affected, btw?

In D22898#501463, @dim wrote:

Are any users of the macros affected, btw?

I do not think that anything is affected for real, otherwise we would already have reports e.g. about threading breakage due to SIGTHR == 32.
This is only a preventive measure against compiler writers trying to make our life hard.