summaryrefslogtreecommitdiff
path: root/core/debugger
diff options
context:
space:
mode:
authorPouleyKetchoupp <pouleyketchoup@gmail.com>2020-11-23 07:59:56 -0700
committerPouleyKetchoupp <pouleyketchoup@gmail.com>2020-11-23 07:59:56 -0700
commitd346c30269b12a03d650a65c658293b7d7bea686 (patch)
tree21632599f8319598048d827989038c05ff4da825 /core/debugger
parent50db0e66ac8c00f176c706cee0c3a5469453acce (diff)
Fix DebuggerMarshalls errors while profiling
Fixed check for array size before func_size: when func_size is 0 there's only 1 entry left and not 3.
Diffstat (limited to 'core/debugger')
-rw-r--r--core/debugger/debugger_marshalls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/debugger/debugger_marshalls.cpp b/core/debugger/debugger_marshalls.cpp
index 3f949b0ae1..03de832b5e 100644
--- a/core/debugger/debugger_marshalls.cpp
+++ b/core/debugger/debugger_marshalls.cpp
@@ -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");