Skip to content

Commit bf99b8b

Browse files
committed
fix: add variable for repo clone
1 parent b33c9ad commit bf99b8b

File tree

10 files changed

+14
-4
lines changed

10 files changed

+14
-4
lines changed

configure

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ sub configureRXXR2 {
127127

128128
my $dir = "rathnayake-rxxr2";
129129
my $file = "$dir/scan.bin";
130+
my $clone_dir = "rxxr";
130131

131132
if (-d $dir) {
132133
&log("rathnayake already installed ($ENV{VULN_REGEX_DETECTOR_ROOT}/src/detect/src/detectors/$dir)");
@@ -135,13 +136,13 @@ sub configureRXXR2 {
135136
&log("Setting up rxxr2");
136137

137138
&log("Cloning repo");
138-
&chkcmd("git clone https://github.com/ConradIrwin/rxxr2");
139+
&chkcmd("git clone https://github.com/ConradIrwin/rxxr2 $clone_dir");
139140
&log("Building");
140-
&chkcmd("cd rxxr2/code; ./build.sh; cd -");
141+
&chkcmd("cd $clone_dir/code; ./build.sh; cd -");
141142

142143
&log("Cleaning up");
143-
&chkcmd("mv rxxr2/code/scan.bin /tmp/RXXR2-INSTALL-scan.bin");
144-
&chkcmd("rm -rf rxxr2/");
144+
&chkcmd("mv $clone_dir/code/scan.bin /tmp/RXXR2-INSTALL-scan.bin");
145+
&chkcmd("rm -rf $clone_dir/");
145146
&chkcmd("mkdir $dir");
146147
&chkcmd("mv /tmp/RXXR2-INSTALL-scan.bin $file");
147148

src/validate/test/go/safe.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"language":"go", "pattern":"a+$", "evilInput": {"suffix":"bb","pumpPairs":[{"prefix":"","pump":"aa"}]}, "nPumps": 1000, "timeLimit": 10}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"language":"go", "pattern":"((abc)+)+$", "evilInput": {"suffix":"!","pumpPairs":[{"prefix":"abc","pump":"abcabc"}]}, "nPumps": 1000, "timeLimit": 1}

src/validate/test/go/unsafe.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"language":"go", "pattern":"(a+(a|b))+$", "evilInput": {"suffix":"!","pumpPairs":[{"prefix":"ab","pump":"aaab"}]}, "nPumps": 1000, "timeLimit": 1}

src/validate/test/java/safe.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"language":"java", "pattern":"a+$", "evilInput": {"suffix":"bb","pumpPairs":[{"prefix":"","pump":"aa"}]}, "nPumps": 1000, "timeLimit": 10}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"language":"java", "pattern":"((abc)+)+$", "evilInput": {"suffix":"!","pumpPairs":[{"prefix":"abc","pump":"abcabc"}]}, "nPumps": 1000, "timeLimit": 1}

src/validate/test/java/unsafe.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"language":"java", "pattern":"(a+(a|b))+$", "evilInput": {"suffix":"!","pumpPairs":[{"prefix":"ab","pump":"aaab"}]}, "nPumps": 1000, "timeLimit": 1}

src/validate/test/test/safe.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"language":"test", "pattern":"a+$", "evilInput": {"suffix":"bb","pumpPairs":[{"prefix":"","pump":"aa"}]}, "nPumps": 1000, "timeLimit": 10}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"language":"test", "pattern":"((abc)+)+$", "evilInput": {"suffix":"!","pumpPairs":[{"prefix":"abc","pump":"abcabc"}]}, "nPumps": 1000, "timeLimit": 1}

src/validate/test/test/unsafe.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"language":"test", "pattern":"(a+(a|b))+$", "evilInput": {"suffix":"!","pumpPairs":[{"prefix":"ab","pump":"aaab"}]}, "nPumps": 1000, "timeLimit": 1}

0 commit comments

Comments
 (0)