diff options
author | Rafał Mikrut <mikrutrafal54@gmail.com> | 2020-04-01 19:29:35 +0200 |
---|---|---|
committer | Rafał Mikrut <mikrutrafal54@gmail.com> | 2020-04-01 19:29:35 +0200 |
commit | 359bebd8c08a626e64ade1ac45c3c925352bd8a4 (patch) | |
tree | 83769dbf9cdb5ca7e6dee2e04b95dfc2c1f587c4 /core | |
parent | 0168709978154a89f137b44f33647e5d28a46250 (diff) |
Fix out of bound array access caused by unassigned variable
Diffstat (limited to 'core')
-rw-r--r-- | core/class_db.cpp | 1 | ||||
-rw-r--r-- | core/math/expression.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/core/class_db.cpp b/core/class_db.cpp index 50c924bdd2..899b4e9cef 100644 --- a/core/class_db.cpp +++ b/core/class_db.cpp @@ -261,6 +261,7 @@ HashMap<StringName, StringName> ClassDB::compat_classes; ClassDB::ClassInfo::ClassInfo() { api = API_NONE; + class_ptr = nullptr; creation_func = NULL; inherits_ptr = NULL; disabled = false; diff --git a/core/math/expression.cpp b/core/math/expression.cpp index 04fda9d09a..4ae9e09a46 100644 --- a/core/math/expression.cpp +++ b/core/math/expression.cpp @@ -2215,6 +2215,8 @@ Expression::Expression() : root(NULL), nodes(NULL), execution_error(false) { + str_ofs = 0; + expression_dirty = false; } Expression::~Expression() { |