Merge pull request #43796 from nekomatata/profiling-error-spam

Fix DebuggerMarshalls errors while profiling
This commit is contained in:
Rémi Verschelde 2020-11-23 17:10:50 +01:00 committed by GitHub
commit e1e3aa4f23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,7 +171,7 @@ bool DebuggerMarshalls::ServersProfilerFrame::deserialize(const Array &p_arr) {
}
servers.push_back(si);
}
CHECK_SIZE(p_arr, idx + 3, "ServersProfilerFrame");
CHECK_SIZE(p_arr, idx + 1, "ServersProfilerFrame");
int func_size = p_arr[idx];
idx += 1;
CHECK_SIZE(p_arr, idx + func_size, "ServersProfilerFrame");