<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 --- - Sanitizer_common_interceptors_ioctl.inc:586 taking address of packed member"
href="https://llvm.org/bugs/show_bug.cgi?id=28115">28115</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Sanitizer_common_interceptors_ioctl.inc:586 taking address of packed member
</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>All
</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>aprantl@apple.com
</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>CFE r272552 added a new warning on taking the address of a packed member.
This warning triggers on the address sanitizer code in compiler-rt:
[2689/2718] Building CXX object
lib/tsan/CMakeFiles/clang_rt.tsan_osx_dynamic.dir/rtl/tsan_interface_atomic.cc.o
/Users/buildslave/jenkins/sharedspace/clang-stage1@2/clang/src/projects/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors_ioctl.inc:586:40:
warning: taking address of packed member 'ifc_len' of class or structure
'__sanitizer::__sanitizer_ifconf' may result in an unaligned pointer value
[-Waddress-of-packed-member]
COMMON_INTERCEPTOR_READ_RANGE(ctx, &ifc->ifc_len, sizeof(ifc->ifc_len));
^~~~~~~~~~~~~
/Users/buildslave/jenkins/sharedspace/clang-stage1@2/clang/src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:2189:66:
note: expanded from macro 'COMMON_INTERCEPTOR_READ_RANGE'
((TsanInterceptorContext *) ctx)->pc, (uptr) ptr, size, \
^~~
1 warning generated.</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>