diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-09-17 19:08:41 +0000 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-09-17 19:08:41 +0000 |
| commit | 2d783ecc1843e31e50bb101730b09d6ef816d014 (patch) | |
| tree | def8c6eb3479f164076f58e5b93849d70f5dde6f /src/projections/isea.cpp | |
| parent | bf53610d87d2b2bcd9afde73915fb2f548f9dd4b (diff) | |
| download | PROJ-2d783ecc1843e31e50bb101730b09d6ef816d014.tar.gz PROJ-2d783ecc1843e31e50bb101730b09d6ef816d014.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; |
