diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-08-11 09:51:02 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-08-11 09:51:05 +0200 |
| commit | 6f78d5604eb4f5ef11e64e70c34a3416569b3e76 (patch) | |
| tree | c349cd6c4f8bee2ea21772561c9dbc68637aacf3 /src | |
| parent | 56bacd3dc9ecb650bbe509758f785e5c319aa004 (diff) | |
| download | PROJ-6f78d5604eb4f5ef11e64e70c34a3416569b3e76.tar.gz PROJ-6f78d5604eb4f5ef11e64e70c34a3416569b3e76.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.cpp | 2 |
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 = |
