diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-03-20 18:13:12 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-03-20 18:13:12 +0100 |
| commit | 61166380276a0e99b980dfdc6b43ea4656846c08 (patch) | |
| tree | 16a42c1f7478e1dc0d8cb11adafafe5106fadf6e /src/projections/laea.cpp | |
| parent | 7ae1b8e86a694e25ef3785ac1896fdb8ee5f487c (diff) | |
| download | PROJ-61166380276a0e99b980dfdc6b43ea4656846c08.tar.gz PROJ-61166380276a0e99b980dfdc6b43ea4656846c08.zip | |
laea: error out if |lat_0|>90
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13829
Credit to OSS Fuzz
Diffstat (limited to 'src/projections/laea.cpp')
| -rw-r--r-- | src/projections/laea.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/projections/laea.cpp b/src/projections/laea.cpp index 22fb1691..11b89a96 100644 --- a/src/projections/laea.cpp +++ b/src/projections/laea.cpp @@ -248,6 +248,9 @@ PJ *PROJECTION(laea) { P->destructor = destructor; t = fabs(P->phi0); + if (t > M_HALFPI + EPS10 ) { + return destructor(P, PJD_ERR_LAT_LARGER_THAN_90); + } if (fabs(t - M_HALFPI) < EPS10) Q->mode = P->phi0 < 0. ? S_POLE : N_POLE; else if (fabs(t) < EPS10) |
