diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-04-10 23:55:52 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-04-10 23:55:52 +0200 |
| commit | 685ad56156f320760c92f7f71fa4acbf3e00acc9 (patch) | |
| tree | 0c9310b5a781e704e20f6754076c51a6d4ec7a47 /test | |
| parent | fb125618fd18f112ed6f37662b021d07a602ff90 (diff) | |
| download | PROJ-685ad56156f320760c92f7f71fa4acbf3e00acc9.tar.gz PROJ-685ad56156f320760c92f7f71fa4acbf3e00acc9.zip | |
lsat: avoid division by zero in inverse
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14135
Credit to OSS Fuzz
Diffstat (limited to 'test')
| -rw-r--r-- | test/gie/builtins.gie | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie index 5cbe6325..adaa98d9 100644 --- a/test/gie/builtins.gie +++ b/test/gie/builtins.gie @@ -2902,7 +2902,7 @@ Space oblique for LANDSAT =============================================================================== ------------------------------------------------------------------------------- -operation +proj=lsat +ellps=GRS80 +lat_1=0.5 +lat_2=2 +lsat=1 +path=2 +operation +proj=lsat +ellps=GRS80 +lsat=1 +path=2 ------------------------------------------------------------------------------- tolerance 0.1 mm accept 2 1 @@ -2924,6 +2924,12 @@ expect 126.000734469 -0.001880155 accept -200 -100 expect 126.002524373 -0.001723782 +------------------------------------------------------------------------------- +operation +proj=lsat +path=1 +lsat=5 +ellps=sphere +------------------------------------------------------------------------------- +direction inverse +accept 0 1e10 +expect failure errno invalid_x_or_y =============================================================================== McBryde-Thomas Flat-Polar Sine (No. 1) |
