aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-11-24 12:12:27 +0100
committerGitHub <noreply@github.com>2021-11-24 12:12:27 +0100
commite93e86ce405fb642ba74c150d5a4661f68214c22 (patch)
tree3c920d0389a46f6a79931288f4bf95b53becf9e4 /test
parent4920c22637d05cd7aa0aecc6de69736dd4c6845b (diff)
parenta1dd3facaefd85e25a8202b7b9ea19b31278e36c (diff)
downloadPROJ-e93e86ce405fb642ba74c150d5a4661f68214c22.tar.gz
PROJ-e93e86ce405fb642ba74c150d5a4661f68214c22.zip
Merge pull request #2957 from rouault/fix_ossfuzz_41290
Pipeline parsing: reject proj=/o_proj= before first step, to avoid bad performance pattern on hostile pipelines
Diffstat (limited to 'test')
-rw-r--r--test/gie/4D-API_cs2cs-style.gie15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/gie/4D-API_cs2cs-style.gie b/test/gie/4D-API_cs2cs-style.gie
index 123bf638..9189b328 100644
--- a/test/gie/4D-API_cs2cs-style.gie
+++ b/test/gie/4D-API_cs2cs-style.gie
@@ -290,6 +290,21 @@ expect 1335.8339 7522.963
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
+# Test invalid pipelines
+-------------------------------------------------------------------------------
+# proj= before first step
+operation +proj=pipeline +proj=merc +step +inv +proj=merc
+expect failure pjd_err_malformed_pipeline
+
+# o_proj= before first step
+operation +proj=pipeline +o_proj=merc +step +proj=ob_tran
+expect failure pjd_err_malformed_pipeline
+
+# nested pipeline
+operation +proj=pipeline +step +proj=pipeline +step +proj=merc
+expect failure pjd_err_malformed_pipeline
+
+-------------------------------------------------------------------------------
# Test Pipeline Coordinate Stack
-------------------------------------------------------------------------------
operation +proj=pipeline \