FreeBSD Bugzilla – Attachment 153690 Details for
Bug 198204
lang/gnatdroid-binutils: fix undefined behavior in gas's tc-arm.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix undefined behavior in gas/contrib/tc-arm.c's rotate_left() macro
lang__gnatdroid-binutils-fix-gas-rotate-1.diff (text/plain), 1.37 KB, created by
Dimitry Andric
on 2015-03-02 20:21:07 UTC
(
hide
)
Description:
Fix undefined behavior in gas/contrib/tc-arm.c's rotate_left() macro
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2015-03-02 20:21:07 UTC
Size:
1.37 KB
patch
obsolete
>Index: lang/gnatdroid-binutils/files/patch-gas__config__tc-arm.c >=================================================================== >--- lang/gnatdroid-binutils/files/patch-gas__config__tc-arm.c (revision 0) >+++ lang/gnatdroid-binutils/files/patch-gas__config__tc-arm.c (working copy) >@@ -0,0 +1,17 @@ >+From d840c081f8082e8b9e63fead5306643975a97bb3 Mon Sep 17 00:00:00 2001 >+From: Richard Earnshaw <Richard.Earnshaw@arm.com> >+Date: Thu, 20 Nov 2014 17:02:47 +0000 >+Subject: [PATCH] * config/tc-arm.c (rotate_left): Avoid undefined behaviour >+ when N = 0. >+ >+--- gas/config/tc-arm.c.orig 2014-10-14 09:32:03.000000000 +0200 >++++ gas/config/tc-arm.c 2015-02-18 21:13:40.720573000 +0100 >+@@ -7251,7 +7251,7 @@ >+ >+ /* Functions for operand encoding. ARM, then Thumb. */ >+ >+-#define rotate_left(v, n) (v << n | v >> (32 - n)) >++#define rotate_left(v, n) (v << (n & 31) | v >> ((32 - n) & 31)) >+ >+ /* If VAL can be encoded in the immediate field of an ARM instruction, >+ return the encoded form. Otherwise, return FAIL. */ > >Property changes on: lang/gnatdroid-binutils/files/patch-gas__config__tc-arm.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 198204
: 153690