aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-08-04 12:46:50 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2014-08-04 20:39:30 +0200
commit5e504b36a1bc17df09fa28f1a26703023466f440 (patch)
tree7634fd9be5e9e44d7dcd3e03bcdb8dcbbce7b3eb /src/qml
parentec559c38c349c38785bdcc265d7e0f852249cfb4 (diff)
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: Gunnar Sletta <gunnar.sletta@jollamobile.com> Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml')
-rw-r--r--src/qml/jsruntime/qv4managed_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4managed_p.h b/src/qml/jsruntime/qv4managed_p.h
index b88531d8ed..cc58983dfc 100644
--- a/src/qml/jsruntime/qv4managed_p.h
+++ b/src/qml/jsruntime/qv4managed_p.h
@@ -191,6 +191,7 @@ struct Q_QML_PRIVATE_EXPORT Managed
Data() {}
Data(InternalClass *internal)
: internalClass(internal)
+ , markBit(0)
, inUse(1)
, extensible(1)
{