From a1dd3facaefd85e25a8202b7b9ea19b31278e36c Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 24 Nov 2021 00:31:21 +0100 Subject: Pipeline parsing: reject proj=/o_proj= before first step, to avoid bad performance pattern on hostile pipelines Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41290 --- test/gie/4D-API_cs2cs-style.gie | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/gie') 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 @@ -289,6 +289,21 @@ accept 12 56 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 ------------------------------------------------------------------------------- -- cgit v1.2.3