Skip to content

Commit ccf9c9e

Browse files
author
Your Name
committed
lab5_v1
1 parent 461e1e5 commit ccf9c9e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files.associations": {
3+
"string.h": "c"
4+
}
5+
}

lab5/antiasan.c

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

34
void antiasan(unsigned long addr)
45
{
5-
6-
}
6+
__asan_unpoison_memory_region((void *)addr, 0x100);
7+
}

0 commit comments

Comments
 (0)