From 3014b26cf2bb51b81339a18a453b8562cb5acd0a Mon Sep 17 00:00:00 2001 From: Sander Visser Date: Fri, 26 Jun 2020 10:46:21 +0200 Subject: Fix QXmlStreamPrivateTagStack uninitialized member MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make sure to init tagsDone from constructor. Avoid relying on QXmlStreamReaderPrivate::init(). Change-Id: I40c08dd370b0ad519e2d6ebc23b8a906c836508e Reviewed-by: MÃ¥rten Nordheim --- src/corelib/serialization/qxmlstream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/corelib/serialization/qxmlstream.cpp b/src/corelib/serialization/qxmlstream.cpp index 690ea7588f..7c075c9297 100644 --- a/src/corelib/serialization/qxmlstream.cpp +++ b/src/corelib/serialization/qxmlstream.cpp @@ -791,6 +791,7 @@ QXmlStreamPrivateTagStack::QXmlStreamPrivateTagStack() namespaceDeclaration.prefix = addToStringStorage(u"xml"); namespaceDeclaration.namespaceUri = addToStringStorage(u"http://www.w3.org/XML/1998/namespace"); initialTagStackStringStorageSize = tagStackStringStorageSize; + tagsDone = false; } #ifndef QT_NO_XMLSTREAMREADER -- cgit v1.2.3