aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-04-11 00:14:26 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-04-11 00:14:26 +0200
commit00dffd7ace356d7cb39e2c515237d4351f5b5666 (patch)
tree8181bae35377a82c549c2a25476267eaafd14bc0 /test
parent685ad56156f320760c92f7f71fa4acbf3e00acc9 (diff)
downloadPROJ-00dffd7ace356d7cb39e2c515237d4351f5b5666.tar.gz
PROJ-00dffd7ace356d7cb39e2c515237d4351f5b5666.zip
omerc: avoid division by zero when |lat_0|=90
Partially revert e3346bb39c860883ed9a8ada0657139118e21ef0 (#195) Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14136 Credit to OSS Fuzz
Diffstat (limited to 'test')
-rw-r--r--test/gie/builtins.gie5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie
index adaa98d9..bbaca7ba 100644
--- a/test/gie/builtins.gie
+++ b/test/gie/builtins.gie
@@ -3962,6 +3962,11 @@ tolerance 1 mm
accept 2 1
expect -3569.825230822232 -5093592.310871849768
+-------------------------------------------------------------------------------
+operation +proj=omerc +R=1 +alpha=0 +lat_0=90
+-------------------------------------------------------------------------------
+expect failure errno lat_0_or_alpha_eq_90
+
===============================================================================
Ortelius Oval