[llvm-bugs] [Bug 28000] New: ASan tries to use 32-bit shift operations to create 64-bit results
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Jun 4 03:21:41 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28000
Bug ID: 28000
Summary: ASan tries to use 32-bit shift operations to create
64-bit results
Product: compiler-rt
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: HBBroeker at T-Online.de
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
There are dozens of rather worrying warnings from VisualStudio 2015 when
compiling ASan for 64-bit WIndows, concerning constructs of the type
uptr t = (1UL << n);
where n is 32 or larger. This code will fail if type uptr is a 64-bit integer,
while unsigned long, and thus "1UL", is 32-bit. That appears to be the case on
Windows x86_64 builds. I think all such cases have to be changed to an
equivalent of either
uptr t = (1ULL << n);
or
uptr t = ((uptr)1 << n);
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160604/61713f3e/attachment.html>
More information about the llvm-bugs
mailing list