[PATCH] Do not insert asan paddings after fields that have flexible arrays.
Kostya Serebryany
kcc at google.com
Wed Oct 22 17:57:01 PDT 2014
Hi majnemer, rsmith,
We should avoid a tail padding not only if the last field
has zero size but also if the last field is a struct with a flexible array.
If/when http://reviews.llvm.org/D5478 is committed,
this will also handle the case of structs with zero-sized arrays.
http://reviews.llvm.org/D5924
Files:
lib/AST/RecordLayoutBuilder.cpp
test/CodeGen/sanitize-address-field-padding.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5924.15288.patch
Type: text/x-patch
Size: 2026 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141023/67d75141/attachment.bin>
More information about the cfe-commits
mailing list