Merge pull request #37504 from qarmin/out_of_bound_cursor

Fix array out of bounds access caused by uninitialised variables
This commit is contained in:
Rémi Verschelde
2020-04-02 13:07:55 +02:00
committed by GitHub
16 changed files with 48 additions and 20 deletions
+1
View File
@@ -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;
+2
View File
@@ -2215,6 +2215,8 @@ Expression::Expression() :
root(NULL),
nodes(NULL),
execution_error(false) {
str_ofs = 0;
expression_dirty = false;
}
Expression::~Expression() {