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:
@@ -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;
|
||||
|
||||
@@ -2215,6 +2215,8 @@ Expression::Expression() :
|
||||
root(NULL),
|
||||
nodes(NULL),
|
||||
execution_error(false) {
|
||||
str_ofs = 0;
|
||||
expression_dirty = false;
|
||||
}
|
||||
|
||||
Expression::~Expression() {
|
||||
|
||||
Reference in New Issue
Block a user