aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-04-05 13:25:17 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-04-05 13:25:17 +0200
commit97de772e16281fad460a1469c34cd37ff42bcefb (patch)
treefe29a1535379858a5d60f2c479a8297214d037f5 /test
parent3aed84243a8188b54d19d7e9c26028796eb398b0 (diff)
downloadPROJ-97de772e16281fad460a1469c34cd37ff42bcefb.tar.gz
PROJ-97de772e16281fad460a1469c34cd37ff42bcefb.zip
lcc: avoid division by zero
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14058 Credit to OSS Fuzz
Diffstat (limited to 'test')
-rw-r--r--test/gie/builtins.gie10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie
index 6976aaca..e5bec322 100644
--- a/test/gie/builtins.gie
+++ b/test/gie/builtins.gie
@@ -2720,6 +2720,16 @@ operation +proj=lcc +ellps=GRS80 +lat_1=90 +lat_2=90
-------------------------------------------------------------------------------
expect failure errno lat_1_or_2_zero_or_90
+-------------------------------------------------------------------------------
+operation +proj=lcc +ellps=sphere +lat_1=0 +lat_2=90
+-------------------------------------------------------------------------------
+expect failure errno lat_1_or_2_zero_or_90
+
+-------------------------------------------------------------------------------
+operation +proj=lcc +ellps=sphere +lat_1=90 +lat_2=0
+-------------------------------------------------------------------------------
+expect failure errno lat_1_or_2_zero_or_90
+
===============================================================================
Lambert Conformal Conic Alternative
Conic, Sph&Ell