diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2019-03-17 08:10:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-17 08:10:20 +0100 |
| commit | bf609ea9ae605d3cf3ce76307f92712b75f01e47 (patch) | |
| tree | f03df01ad362004340826a19c5d28d3b317792b7 /src/projections/aea.cpp | |
| parent | eab22791b80615e3ad77040423f70205cd7a061d (diff) | |
| parent | c6f41f0176d744de5de1ca48e764148ed18e6489 (diff) | |
| download | PROJ-bf609ea9ae605d3cf3ce76307f92712b75f01e47.tar.gz PROJ-bf609ea9ae605d3cf3ce76307f92712b75f01e47.zip | |
Merge pull request #1322 from rouault/ossfuzz_fixes
Various ossfuzz fixes
Diffstat (limited to 'src/projections/aea.cpp')
| -rw-r--r-- | src/projections/aea.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/projections/aea.cpp b/src/projections/aea.cpp index 9a0c4656..f457e836 100644 --- a/src/projections/aea.cpp +++ b/src/projections/aea.cpp @@ -155,6 +155,8 @@ static PJ *setup(PJ *P) { P->inv = e_inverse; P->fwd = e_forward; + if (fabs(Q->phi1) > M_HALFPI || fabs(Q->phi2) > M_HALFPI) + return destructor(P, PJD_ERR_LAT_LARGER_THAN_90); if (fabs(Q->phi1 + Q->phi2) < EPS10) return destructor(P, PJD_ERR_CONIC_LAT_EQUAL); Q->n = sinphi = sin(Q->phi1); |
