diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-09-17 21:08:41 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-09-17 21:08:41 +0200 |
| commit | 15a85172b778c3d57adb0e4e61842c0a4bcb4e44 (patch) | |
| tree | e326548bd55a820141cb4d7536e3910940c2dd88 /src/projections/isea.cpp | |
| parent | 3a68912a6b556dccf22d8e8b329404821d238e50 (diff) | |
| download | PROJ-15a85172b778c3d57adb0e4e61842c0a4bcb4e44.tar.gz PROJ-15a85172b778c3d57adb0e4e61842c0a4bcb4e44.zip | |
isea: avoid undefined behaviour on left shift of negative value. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15009
Diffstat (limited to 'src/projections/isea.cpp')
| -rw-r--r-- | src/projections/isea.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/projections/isea.cpp b/src/projections/isea.cpp index c22e143d..d1aeab4a 100644 --- a/src/projections/isea.cpp +++ b/src/projections/isea.cpp @@ -902,7 +902,7 @@ static int isea_hex(struct isea_dgg *g, int tri, { throw "Invalid shift"; } - hex->x = ((int)v.x << 4) + quad; + hex->x = ((int)v.x * 16) + quad; hex->y = v.y; return 1; |
