aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-08-11 09:51:02 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-08-11 09:51:32 +0200
commit523b6f703bedc90cdb578909bef71292bab3239c (patch)
treee62fca9388402177eec6c532014c69c61988c4ed /src
parentdd91c93ca44cbe3cf4f6f7c94a8f225aefa4b408 (diff)
downloadPROJ-523b6f703bedc90cdb578909bef71292bab3239c.tar.gz
PROJ-523b6f703bedc90cdb578909bef71292bab3239c.zip
WKT parser: avoid null pointer dereference on corrupted WKT
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24809
Diffstat (limited to 'src')
-rw-r--r--src/iso19111/io.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp
index a5e473c0..57f358df 100644
--- a/src/iso19111/io.cpp
+++ b/src/iso19111/io.cpp
@@ -2054,7 +2054,7 @@ GeodeticReferenceFrameNNPtr WKTParser::Private::buildGeodeticReferenceFrame(
auto &idNode = nodeP->lookForChild(WKTConstants::AUTHORITY);
if (!isNull(idNode)) {
try {
- auto id = buildId(idNode, true, false);
+ auto id = buildId(idNode, false, false);
auto authFactory2 = AuthorityFactory::create(
NN_NO_CHECK(dbContext_), *id->codeSpace());
auto dbDatum =