diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-04-04 22:36:00 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-04-04 22:36:00 +0200 |
| commit | 70ed3efe60718be74d73d92ec2d121e2de268e53 (patch) | |
| tree | 2a16573f690d8f7e07df4dbbc0ab5fabd376723c /src/strerrno.cpp | |
| parent | 1e2e512f9a671df504f6f01eee53dc26939b3c0a (diff) | |
| download | PROJ-70ed3efe60718be74d73d92ec2d121e2de268e53.tar.gz PROJ-70ed3efe60718be74d73d92ec2d121e2de268e53.zip | |
Reject negative e parameter to avoid division by zero
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14044
Credit to OSS Fuzz
Diffstat (limited to 'src/strerrno.cpp')
| -rw-r--r-- | src/strerrno.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strerrno.cpp b/src/strerrno.cpp index 4020cb23..c230d226 100644 --- a/src/strerrno.cpp +++ b/src/strerrno.cpp @@ -15,7 +15,7 @@ pj_err_list[] = { "no colon in init= string", /* -3 */ "projection not named", /* -4 */ "unknown projection id", /* -5 */ - "effective eccentricity >= 1.", /* -6 */ + "effective eccentricity < 0 or >= 1.", /* -6 */ "unknown unit conversion id", /* -7 */ "invalid boolean param argument", /* -8 */ "unknown elliptical parameter name", /* -9 */ |
