Skip to content

Commit 53c4610

Browse files
committed
Add cookie magic as reason to search for device allocations.
Change-Id: Iea6f80412e3ef1fcdca6c8669358b474d53ce737
1 parent 0af67a7 commit 53c4610

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/lib/asan/asan_errors.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,8 @@ void ErrorNonSelfAMDGPU::Print() {
787787
PrintThreadsAndAddresses();
788788
Printf("%s", d.Default());
789789
if (shadow_val == kAsanHeapFreeMagic ||
790-
shadow_val == kAsanHeapLeftRedzoneMagic) {
790+
shadow_val == kAsanHeapLeftRedzoneMagic ||
791+
shadow_val == kAsanArrayCookieMagic) {
791792
PrintMallocStack();
792793
}
793794
addr_description.Print(bug_descr, true);

0 commit comments

Comments
 (0)