The instrumentUnusualSizeOrAlignment was originally refactored out in D8198. At that time callbacks probably handled the unaligned case properly? Now it is causing a wrong "unknown-crash" message instead of 'global-buffer-overflow' because it is looking at the wrong place in shadow memory.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | ||
---|---|---|
1874 | I'm confused - AsanMemoryAccessCallbackSized callbacks go to __asan_loadN / __asan_storeN versions which should handle unaligned properly. |
I'm confused - AsanMemoryAccessCallbackSized callbacks go to __asan_loadN / __asan_storeN versions which should handle unaligned properly.