Skip to content

Commit 4e90742

Browse files
authored
Update antiasan.c
1 parent 88cb4bd commit 4e90742

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lab5/antiasan.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
// TODO:
1+
#include <stddef.h>
2+
#include <stdint.h>
3+
24
void antiasan(unsigned long addr)
35
{
4-
6+
uintptr_t shadow_addr = (addr >> 3) + 0x7fff8000;
7+
*(volatile char *)shadow_addr = 0;
58
}

0 commit comments

Comments
 (0)