This is the final patch. Force libsanitizer to use an old ABI for ubsan
float cast data descriptors, because for some exprs (e.g. that type of
tcc_declaration) we can't get the right location for now. I'm not sure
about this, perhaps it should be fixed in GCC somehow.
2015-10-13 Maxim Ostapenko <m.ostape...@partner.samsung.com>
* ubsan/ubsan_handlers.cc (looksLikeFloatCastOverflowDataV1): Always
return true for now.
Index: libsanitizer/ubsan/ubsan_handlers.cc
===================================================================
--- libsanitizer/ubsan/ubsan_handlers.cc (revision 250059)
+++ libsanitizer/ubsan/ubsan_handlers.cc (working copy)
@@ -307,6 +307,9 @@
}
static bool looksLikeFloatCastOverflowDataV1(void *Data) {
+ // (TODO): propagate SourceLocation into DataDescriptor and use this
+ // heuristic than.
+ return true;
// First field is either a pointer to filename or a pointer to a
// TypeDescriptor.
u8 *FilenameOrTypeDescriptor;