aboutsummaryrefslogtreecommitdiff
path: root/src/strerrno.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-05-05 20:28:59 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-05-05 20:28:59 +0200
commit96af6dbf69dd38421916438702be80f73276d879 (patch)
treed5a653a6a306ad4c7fc7bc1586c20fac6d48f627 /src/strerrno.cpp
parentc5346c7c25ca9fe281df39eaeefebc1aa4009266 (diff)
downloadPROJ-96af6dbf69dd38421916438702be80f73276d879.tar.gz
PROJ-96af6dbf69dd38421916438702be80f73276d879.zip
geos: avoid division by zero
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14602 Credit to OSS Fuzz
Diffstat (limited to 'src/strerrno.cpp')
-rw-r--r--src/strerrno.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strerrno.cpp b/src/strerrno.cpp
index c230d226..12546bd0 100644
--- a/src/strerrno.cpp
+++ b/src/strerrno.cpp
@@ -39,7 +39,7 @@ pj_err_list[] = {
"W <= 0 or M <= 0", /* -27 */
"lsat not in 1-5 range", /* -28 */
"path not in range", /* -29 */
- "h <= 0", /* -30 */
+ "h <= 0 or h > 1e10 * a", /* -30 */
"k <= 0", /* -31 */
"lat_1=lat_2 or lat_1=0 or lat_2=90", /* -32 */
"lat_0 = 0 or 90 or alpha = 90", /* -33 */