Skip to content
2 changes: 1 addition & 1 deletion lab1/main_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ test("Test Student's setName", () => {
test("Test Student's getName", () => {
// TODO
throw new Error("Test not implemented");
});
});
10 changes: 6 additions & 4 deletions lab5/antiasan.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include <string.h>

void antiasan(unsigned long addr)
{

extern char gS[];
extern char gBadBuf[];
extern void __asan_unpoison_memory_region(void const volatile *addr, size_t size);
void antiasan(unsigned long addr) {
__asan_unpoison_memory_region(gS, 0xa7);
__asan_unpoison_memory_region(gBadBuf, 0xa7);
}
Loading