svn commit: r261455 - in stable/10: lib/libc/sparc64/fpu lib/libc/xdr sys/amd64/pci sys/amd64/vmm/intel sys/arm/arm sys/arm/at91 sys/arm/broadcom/bcm2835 sys/arm/econa sys/arm/freescale/imx sys/arm...

Eitan Adler eadler at freebsd.org
Tue Feb 4 16:30:36 UTC 2014


On Tue, Feb 4, 2014 at 9:59 AM, Ian Lepore <ian at freebsd.org> wrote:
> On Tue, 2014-02-04 at 03:36 +0000, Eitan Adler wrote:
>> Author: eadler
>> Date: Tue Feb  4 03:36:42 2014
>> New Revision: 261455
>> URL: http://svnweb.freebsd.org/changeset/base/261455
>>
>> Log:
>>   MFC r258779,r258780,r258787,r258822:
>>
>>   Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this
>>   shifts into the sign bit.  Instead use (1U << 31) which gets the
>>   expected result.
>>
>>   Similar to the (1 << 31) case it is not defined to do (2 << 30).
>>
>>   This fix is not ideal as it assumes a 32 bit int, but does fix the issue
>>   for most cases.
>>
>>   A similar change was made in OpenBSD.
>>
>
> This is causing arm breakage, I think r258787 needs to be mfc'd to fix.

As the commit log says, I included r258787 in the original svn merge
line.  I'm not sure why it didn't work.
In any case it should be fixed now and sorry for the breakage.


-- 
Eitan Adler
Source, Ports, Doc committer
Bugmeister, Ports Security teams


More information about the svn-src-all mailing list