Skip to content

Commit e0759a4

Browse files
committed
complete lab5
1 parent d1bb407 commit e0759a4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lab5/antiasan.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
#include <string.h>
1+
#include <sanitizer/asan_interface.h>
22

3+
//TODO:
34
void antiasan(unsigned long addr)
45
{
5-
6-
}
6+
// __asan_unpoison_memory_region((void *)addr, 64);
7+
// __asan_unpoison_memory_region((void *)addr, 128);
8+
__asan_unpoison_memory_region((void *)addr, 256);
9+
}

0 commit comments

Comments
 (0)