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
F152907741: D22898.id65934.diff
Fri, Apr 17, 11:08 PM
Unknown Object (File)
Thu, Apr 16, 11:12 AM
Unknown Object (File)
Mon, Apr 13, 10:40 PM
Unknown Object (File)
Sun, Apr 12, 1:41 AM
Unknown Object (File)
Sat, Apr 11, 2:40 AM
Unknown Object (File)
Sun, Apr 5, 4:59 AM
Unknown Object (File)
Sat, Apr 4, 3:23 AM
Unknown Object (File)
Thu, Apr 2, 2:46 AM
Subscribers

Diff Detail

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

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.