aboutsummaryrefslogtreecommitdiff
path: root/src/projections/isea.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@mines-paris.org>2019-04-19 10:29:38 +0200
committerGitHub <noreply@github.com>2019-04-19 10:29:38 +0200
commitfb88946ac55fafd25a021e26c151b492efe5fd4c (patch)
treecaf537535841aee349580bb94a5b5f2fdf766351 /src/projections/isea.cpp
parentcf0a6384741354811f821f1cc63bb7f2b69b9924 (diff)
parent3f6c53ccee6062df95c595a0ea5b8cbed7e7f199 (diff)
downloadPROJ-fb88946ac55fafd25a021e26c151b492efe5fd4c.tar.gz
PROJ-fb88946ac55fafd25a021e26c151b492efe5fd4c.zip
Merge pull request #1431 from rouault/ossfuzz_14286_14342
Ossfuzz 14286 14342
Diffstat (limited to 'src/projections/isea.cpp')
-rw-r--r--src/projections/isea.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/projections/isea.cpp b/src/projections/isea.cpp
index 28510cb0..e8720b27 100644
--- a/src/projections/isea.cpp
+++ b/src/projections/isea.cpp
@@ -898,6 +898,10 @@ static int isea_hex(struct isea_dgg *g, int tri,
quad = isea_ptdi(g, tri, pt, &v);
+ if( v.x < (INT_MIN >> 4) || v.x > (INT_MAX >> 4) )
+ {
+ throw "Invalid shift";
+ }
hex->x = ((int)v.x << 4) + quad;
hex->y = v.y;