diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-03-22 16:11:52 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-03-22 16:11:52 +0100 |
| commit | 93b119b0abcdf76ad2b01465c5109381837b387e (patch) | |
| tree | 5951842efede6ea5e9dfafdca50cf892bd2b71ca /src/projections/isea.cpp | |
| parent | 32197a2e1d5dfa80838f6982787e957b643ff9d6 (diff) | |
| download | PROJ-93b119b0abcdf76ad2b01465c5109381837b387e.tar.gz PROJ-93b119b0abcdf76ad2b01465c5109381837b387e.zip | |
Really fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2390
Diffstat (limited to 'src/projections/isea.cpp')
| -rw-r--r-- | src/projections/isea.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/projections/isea.cpp b/src/projections/isea.cpp index 659ca790..7dc890e0 100644 --- a/src/projections/isea.cpp +++ b/src/projections/isea.cpp @@ -105,7 +105,8 @@ static void hexbin2(double width, double x, double y, long *i, long *j) { iy = lround(ry); rz = floor(z + 0.5); iz = lround(rz); - if( fabs(rx + ry + rz) > std::numeric_limits<int>::max() ) { + if( fabs(rx + ry) > std::numeric_limits<int>::max() || + fabs(rx + ry + rz) > std::numeric_limits<int>::max() ) { throw "Integer overflow"; } |
