<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - ASan tries to use 32-bit shift operations to create 64-bit results"
href="https://llvm.org/bugs/show_bug.cgi?id=28000">28000</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ASan tries to use 32-bit shift operations to create 64-bit results
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>HBBroeker@T-Online.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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);</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>