Index: compiler-rt/trunk/lib/hwasan/hwasan.cpp =================================================================== --- compiler-rt/trunk/lib/hwasan/hwasan.cpp +++ compiler-rt/trunk/lib/hwasan/hwasan.cpp @@ -276,10 +276,10 @@ while (note < nend) { auto *nhdr = reinterpret_cast(note); const char *name = note + sizeof(ElfW(Nhdr)); - const char *desc = name + nhdr->n_namesz; + const char *desc = name + RoundUpTo(nhdr->n_namesz, 4); if (nhdr->n_type != NT_LLVM_HWASAN_GLOBALS || internal_strcmp(name, "LLVM") != 0) { - note = desc + nhdr->n_descsz; + note = desc + RoundUpTo(nhdr->n_descsz, 4); continue; }