diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-04-12 18:21:22 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-04-12 18:21:22 +0200 |
| commit | 33f81359efd93ccd4bf59cc4f6b68c6363042f97 (patch) | |
| tree | 45821c19e95199e58a70f52a1b2bfe4699b3992f /test/gie | |
| parent | 2117c151d62cd0267068075b9e7cf7cc0d404a63 (diff) | |
| download | PROJ-33f81359efd93ccd4bf59cc4f6b68c6363042f97.tar.gz PROJ-33f81359efd93ccd4bf59cc4f6b68c6363042f97.zip | |
Validate lat_0 range in general case, lat_1 and lat_2 for lcc and eqdc
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14211
Credit to OSS Fuzz
Diffstat (limited to 'test/gie')
| -rw-r--r-- | test/gie/builtins.gie | 24 | ||||
| -rw-r--r-- | test/gie/more_builtins.gie | 4 |
2 files changed, 28 insertions, 0 deletions
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie index 63766e79..7de5fccc 100644 --- a/test/gie/builtins.gie +++ b/test/gie/builtins.gie @@ -69,6 +69,9 @@ expect failure errno lat_larger_than_90 operation +proj=aea +ellps=GRS80 +lat_2=900 expect failure errno lat_larger_than_90 +operation +proj=aea +R=6400000 +lat_1=1 +lat_2=-1 +expect failure errno conic_lat_equal + ------------------------------------------------------------------------------- operation +proj=aea +a=9999999 +b=.9 +lat_2=1 ------------------------------------------------------------------------- @@ -1301,6 +1304,17 @@ expect -0.001790221 0.000895246 accept -200 -100 expect -0.001790220 -0.000895247 +operation +proj=eqdc +a=9999999 +b=.9 +lat_2=1 +expect failure errno invalid_eccentricity + +operation +proj=eqdc +R=6400000 +lat_1=1 +lat_2=-1 +expect failure errno conic_lat_equal + +operation +proj=eqdc +R=6400000 +lat_1=91 +expect failure errno lat_larger_than_90 + +operation +proj=eqdc +R=6400000 +lat_2=91 +expect failure errno lat_larger_than_90 =============================================================================== Euler @@ -2754,6 +2768,16 @@ operation +proj=lcc +ellps=sphere +lat_1=90 +lat_2=0 ------------------------------------------------------------------------------- expect failure errno lat_1_or_2_zero_or_90 +------------------------------------------------------------------------------- +operation +proj=lcc +ellps=sphere +lat_1=91 +------------------------------------------------------------------------------- +expect failure errno lat_larger_than_90 + +------------------------------------------------------------------------------- +operation +proj=lcc +ellps=sphere +lat_2=91 +------------------------------------------------------------------------------- +expect failure errno lat_larger_than_90 + =============================================================================== Lambert Conformal Conic Alternative Conic, Sph&Ell diff --git a/test/gie/more_builtins.gie b/test/gie/more_builtins.gie index f6b52ea3..30ddc0d5 100644 --- a/test/gie/more_builtins.gie +++ b/test/gie/more_builtins.gie @@ -772,5 +772,9 @@ expect 25 25 25 25 ------------------------------------------------------------------------------- +# Test invalid lat_0 +operation +proj=aeqd +R=1 +lat_0=91 +expect failure errno lat_larger_than_90 + </gie> |
