Message ID | 3903998.RHMxXVOS9R@polaris |
---|---|
State | New |
Headers | show |
Series | [libsanitizer] AddressSanitizer: fix for SPARC with GCC | expand |
Index: asan/asan_globals.cc =================================================================== --- asan/asan_globals.cc (revision 269546) +++ asan/asan_globals.cc (working copy) @@ -112,7 +112,11 @@ int GetGlobalsForAddress(uptr addr, Glob if (flags()->report_globals >= 2) ReportGlobal(g, "Search"); if (IsAddressNearGlobal(addr, g)) { +#if defined(__GNUC__) && defined(__sparc__) + internal_memcpy(&globals[res], &g, sizeof(g)); +#else globals[res] = g; +#endif if (reg_sites) reg_sites[res] = FindRegistrationSite(&g); res++;