Closed ramosian-glider closed 9 years ago
Regression range: r164900 (works) -- r166000 (does not)
Reported by ramosian.glider
on 2012-10-26 08:59:34
This has been caused by r165307, namely the following part:
=======================================================
@@ -382,9 +372,7 @@
#if ASAN_INTERCEPT_STRDUP
INTERCEPTOR(char*, strdup, const char *s) {
-#if MAC_INTERPOSE_FUNCTIONS
- if (!asan_inited) return REAL(strdup)(s);
-#endif
+ if (!asan_inited) return internal_strdup(s);
ENSURE_ASAN_INITED();
if (flags()->replace_str) {
uptr length = REAL(strlen)(s);
=======================================================
Because internal_strdup() calls malloc(), it may hit an assertion within the ASan allocator.
Reported by ramosian.glider
on 2012-10-26 10:23:53
Fixed in r166768
Reported by ramosian.glider
on 2012-10-26 13:53:43
Fixed
Adding Project:AddressSanitizer as part of GitHub migration.
Reported by ramosian.glider
on 2015-07-30 09:13:40
Originally reported on Google Code with ID 123
Reported by
ramosian.glider
on 2012-10-25 14:52:24