Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
This is in sanitizer_common, so we need a test, TEST(SanitizerStacktracePrinter, ...)
PTAL. As hwasan_symbolize only matches a prefix of the line. it doesn't need to be changed.
compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp | ||
---|---|---|
599 ↗ | (On Diff #390536) | This already exists as RoundUpTo |
628 ↗ | (On Diff #390536) | Technically, kGnuNamesz should be rounded up, too - but it's already 4. Do it anyway, for clarity? |
633 ↗ | (On Diff #390536) | It would be good to do more checks here - first that the entire nhdr fits in p_memsz, then the name/value data, too. |
compiler-rt/test/hwasan/TestCases/build-ids.c | ||
3 | Could you use symbolize=0 in %env_hwasan_opts instead? | |
compiler-rt/test/sanitizer_common/android_commands/android_run.py | ||
16 | is this for HWASAN_SYMBOLIZER_PATH? |
compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp | ||
---|---|---|
628 ↗ | (On Diff #390536) | Added a static_assert. |
633 ↗ | (On Diff #390536) | We do check that the nhdr fits into p_memsz in the condition of the loop. Added a check before doing the memcmp and memcpy as an extra precaution. |
compiler-rt/test/sanitizer_common/android_commands/android_run.py | ||
16 | Yes, it was. But it's now unneeded. |
fix tests.
on some buildbots __hwasan_store shows up above the frame we assert,
so the frame number is wrong
Could you use symbolize=0 in %env_hwasan_opts instead?