diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-03-20 17:13:12 +0000 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-03-20 17:13:12 +0000 |
| commit | b702580dc7da27ba448027792dcfc5491fb8b475 (patch) | |
| tree | bf9f9d8b304c5a55e9e11eb01a40675f2d308e09 /src | |
| parent | 4448b376be42b5eedc0e7fa86f4551d5d19f7346 (diff) | |
| download | PROJ-b702580dc7da27ba448027792dcfc5491fb8b475.tar.gz PROJ-b702580dc7da27ba448027792dcfc5491fb8b475.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')
| -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) |
