aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-03-29 23:09:16 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-03-29 23:31:57 +0100
commitff1e495525969352f83507950dd4e1fd3cec69c2 (patch)
tree4736ce0502d157fa5c3debe1eba658003a3100d3 /test
parent884da6cc0a2d9e85927fe30ba90d535db9d65317 (diff)
downloadPROJ-ff1e495525969352f83507950dd4e1fd3cec69c2.tar.gz
PROJ-ff1e495525969352f83507950dd4e1fd3cec69c2.zip
tpeqd: avoid division by zero
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13948 Credit to OSS Fuzz
Diffstat (limited to 'test')
-rw-r--r--test/gie/builtins.gie8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie
index c8eb3a11..2cc44632 100644
--- a/test/gie/builtins.gie
+++ b/test/gie/builtins.gie
@@ -5243,7 +5243,7 @@ Two Point Equidistant
===============================================================================
-------------------------------------------------------------------------------
-operation +proj=tpeqd +ellps=GRS80 +lat_1=0.5 +lat_2=2 +n=0.5
+operation +proj=tpeqd +ellps=GRS80 +lat_1=0.5 +lat_2=2
-------------------------------------------------------------------------------
tolerance 0.18 mm
accept 2 1
@@ -5266,7 +5266,7 @@ accept -200 -100
expect 0.000898554 1.248203369
-------------------------------------------------------------------------------
-operation +proj=tpeqd +a=6400000 +lat_1=0.5 +lat_2=2 +n=0.5
+operation +proj=tpeqd +a=6400000 +lat_1=0.5 +lat_2=2
-------------------------------------------------------------------------------
tolerance 0.1 mm
accept 2 1
@@ -5288,6 +5288,10 @@ expect -0.000895485 1.248209507
accept -200 -100
expect 0.000895485 1.248209507
+-------------------------------------------------------------------------------
+operation +proj=tpeqd +a=6400000 +lat_1=90 +lat_2=90 +lon_1=0 +lon_2=1
+-------------------------------------------------------------------------------
+expect failure
===============================================================================
Tilted perspective