Commit 5e504b36 authored by Lars Knoll's avatar Lars Knoll Committed by Simon Hausmann
Browse files

Fix uninitialized memory read


Explicitly initialize the markBit to 0. This is important
for stack based execution contexts that can have uninitialized
data in the bit.

Change-Id: I50f1286949f1b4732e3a31b83b238bc7dcf7c7a7
Reviewed-by: default avatarGunnar Sletta <gunnar.sletta@jollamobile.com>
Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
parent ec559c38
No related merge requests found
Showing with 1 addition and 0 deletions
......@@ -191,6 +191,7 @@ struct Q_QML_PRIVATE_EXPORT Managed
Data() {}
Data(InternalClass *internal)
: internalClass(internal)
, markBit(0)
, inUse(1)
, extensible(1)
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment