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
F146928372: D22898.id.diff
Fri, Mar 6, 8:39 PM
F146898789: D22898.id.diff
Fri, Mar 6, 2:33 PM
F146870629: D22898.id.diff
Fri, Mar 6, 8:45 AM
Unknown Object (File)
Wed, Mar 4, 4:01 PM
Unknown Object (File)
Wed, Mar 4, 4:00 PM
Unknown Object (File)
Sun, Mar 1, 1:58 AM
Unknown Object (File)
Fri, Feb 27, 6:46 PM
Unknown Object (File)
Fri, Feb 27, 9:42 AM
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.