Skip to content

[LAB5] 313551150 #420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
May 1, 2025
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