aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-07-07 23:17:31 +0200
committerLouis Burda <quent.burda@gmail.com>2021-07-07 23:17:39 +0200
commit8e430a00c145647cf6a67504640bd919af2c4fdf (patch)
tree1ad8cbac62cede66e383266d653b042337572058 /tests
parent3139342aa61d78985298d7450f97513a8aeec681 (diff)
downloadenowars5-service-stldoctor-8e430a00c145647cf6a67504640bd919af2c4fdf.tar.gz
enowars5-service-stldoctor-8e430a00c145647cf6a67504640bd919af2c4fdf.zip
stash before adding attack_info for fixing exploit variant 2
Diffstat (limited to 'tests')
-rw-r--r--tests/data/evil2.stl9
-rw-r--r--tests/test.sh1
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/data/evil2.stl b/tests/data/evil2.stl
new file mode 100644
index 0000000..79254bd
--- /dev/null
+++ b/tests/data/evil2.stl
@@ -0,0 +1,9 @@
+solid test˙3ac
+ facet normal 0 0 1.0
+ outer loop
+ vertex 1 0 0
+ vertex 1 1 0
+ vertex 0 1 0
+ endloop
+ endfacet
+endsolid
diff --git a/tests/test.sh b/tests/test.sh
index 1f36f4d..41f9d4c 100644
--- a/tests/test.sh
+++ b/tests/test.sh
@@ -89,6 +89,7 @@ elif [ "$1" == "stl-upload" ]; then
name="${3:-samplefile}"
(
echo "echo"
+ [ ! -z "$AUTH" ] && echo "auth $AUTH"
echo "upload"
echo "$name"
cat "$file" | wc -c