aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-04-01 22:18:18 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-04-01 22:18:18 +0200
commitd3eada4ec2a1b825aaacc1e3ad9fc1cd4da09ee5 (patch)
tree041cc1ef39d55031878adbcdea832d314e424772 /test
parent530913a5517fea6d23daecdb6b4d8d62fcb0a9cc (diff)
downloadPROJ-d3eada4ec2a1b825aaacc1e3ad9fc1cd4da09ee5.tar.gz
PROJ-d3eada4ec2a1b825aaacc1e3ad9fc1cd4da09ee5.zip
bonne: avoid division by zero
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14010 Credit to OSS Fuzz
Diffstat (limited to 'test')
-rw-r--r--test/gie/builtins.gie25
1 files changed, 23 insertions, 2 deletions
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie
index 91f0cb22..5f78c979 100644
--- a/test/gie/builtins.gie
+++ b/test/gie/builtins.gie
@@ -618,7 +618,7 @@ Bonne (Werner lat_1=90)
===============================================================================
-------------------------------------------------------------------------------
-operation +proj=bonne +ellps=GRS80 +lat_1=0.5 +lat_2=2
+operation +proj=bonne +ellps=GRS80 +lat_1=0.5
-------------------------------------------------------------------------------
tolerance 0.1 mm
accept 2 1
@@ -641,7 +641,18 @@ accept -200 -100
expect -0.001796698 0.499095631
-------------------------------------------------------------------------------
-operation +proj=bonne +R=6400000 +lat_1=0.5 +lat_2=2
+operation +proj=bonne +ellps=GRS80 +lat_1=90
+-------------------------------------------------------------------------------
+tolerance 0.1 mm
+accept 0 90
+expect 0 0
+
+direction inverse
+accept 0 0
+expect 0 90
+
+-------------------------------------------------------------------------------
+operation +proj=bonne +R=6400000 +lat_1=0.5
-------------------------------------------------------------------------------
tolerance 0.1 mm
accept 2 1
@@ -663,6 +674,16 @@ expect -0.001790562 0.500895246
accept -200 -100
expect -0.001790561 0.499104753
+-------------------------------------------------------------------------------
+operation +proj=bonne +R=6400000 +lat_1=90
+-------------------------------------------------------------------------------
+tolerance 0.1 mm
+accept 0 90
+expect 0 0
+
+direction inverse
+accept 0 0
+expect 0 90
===============================================================================
Cal Coop Ocean Fish Invest Lines/Stations