From 3d2140afee6dc2f22499b993bd21e3e9e3499b84 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Fri, 8 Jan 2016 16:55:31 +0100 Subject: [PATCH] coverity finding: get latest openddlparser to get fix against possible nullptr access. --- contrib/openddlparser/code/OpenDDLParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/openddlparser/code/OpenDDLParser.cpp b/contrib/openddlparser/code/OpenDDLParser.cpp index 99e7dfb8c..7b86b70f0 100644 --- a/contrib/openddlparser/code/OpenDDLParser.cpp +++ b/contrib/openddlparser/code/OpenDDLParser.cpp @@ -299,13 +299,13 @@ char *OpenDDLParser::parseHeader( char *in, char *end ) { } // set the properties - if( ddl_nullptr != first ) { + if( ddl_nullptr != first && ddl_nullptr != node ) { node->setProperties( first ); } Name *name( ddl_nullptr ); in = OpenDDLParser::parseName( in, end, &name ); - if( ddl_nullptr != name ) { + if( ddl_nullptr != name && ddl_nullptr != node ) { const std::string nodeName( name->m_id->m_text.m_buffer ); node->setName( nodeName ); }