Skip to content

Commit 34da9a4

Browse files
committed
fix: gh-script syntax error
1 parent 5a4163c commit 34da9a4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/lab-autograding.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
const changedFiles = files.data.map((file) => file.filename);
4747
const allowedFileRegex = /^lab\d+\/main_test.js$/;
4848
const specialChangedFiles = ["lab5/Answer.md", "lab5/antiasan.c"];
49-
if (!changedFiles.every((file) => (allowedFileRegex.test(file) || specialChangedFiles.includes(file))) {
49+
if (!changedFiles.every((file) => (allowedFileRegex.test(file) || specialChangedFiles.includes(file)))) {
5050
core.setFailed('The PR contains changes to files other than the allowed files.');
5151
}
5252
return labNumber;

lab5/README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# Lab4
1+
# Lab5
22

33
## Introduction
44

5-
In this lab, you will write tests in `main_test.js`. You can learn how to use [Puppeteer](https://pptr.dev/) to tests a web UI.
5+
In this lab, you will write a function antoasan to bypass detection of ASan in `antiasan.c` and answer questions of slide in `Answer.md`.
66

77
## Preparation (Important!!!)
88

99
1. Sync fork your branch (e.g., `SQLab:311XXXXXX`)
10-
2. `git checkout -b lab4` (**NOT** your student ID !!!)
10+
2. `git checkout -b lab5` (**NOT** your student ID !!!)
1111

1212
## Requirement
1313

14-
1. (100%) Goto https://pptr.dev/, type `chipi chipi chapa chapa` into the search box, click on **1st** result in the **Docs** section, and print the title.
15-
16-
For the detailed steps and hints, please check the slide of this lab.
14+
1. (50%) Test Valgrind and ASan to detect common memory corruption vulns, and then asnwer result, report of Valgrind/ASan and Vulnerable code in `Answer.md`.
15+
2. (40%) Write a vulnerable code to bypass redzone between 2 int [8] arrays and asnwer reason and code in `Answer.md`.
1716

17+
3. (30%) write a function antoasan to bypass detection of ASan in `antiasan.c`.
1818
You can run `validate.sh` in your local to test if you satisfy the requirements.
1919

20-
Please note that you must not alter files other than `main_test.js`. You will get 0 points if
20+
Please note that you must not alter files other than `antiasan.c` and `Answer.md`. You will get 0 points if
2121

2222
1. you modify other files to achieve requirements.
2323
2. you can't pass all CI on your PR.

0 commit comments

Comments
 (0)