Skip to content

Commit f641ebc

Browse files
committed
test(path-traversal): clean generated paths
Use the same filesystem locations as the spawned fuzz targets so repeated direct runs do not fail on stale SAFE directories.
1 parent d40ee33 commit f641ebc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/bug-detectors/path-traversal.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ const {
2424
} = require("../helpers");
2525

2626
describe("Path Traversal", () => {
27-
const SAFE = "../safe_path/";
28-
const EVIL = "../evil_path/";
2927
const bugDetectorDirectory = path.join(__dirname, "path-traversal");
28+
const SAFE = path.join(bugDetectorDirectory, "../../safe_path");
29+
const EVIL = path.join(bugDetectorDirectory, "../../evil_path");
3030
const goalPath = path.join(bugDetectorDirectory, "../../jaz_zer");
3131

3232
beforeEach(async () => {

0 commit comments

Comments
 (0)