diff options
author | Larry Ewing <lewing@microsoft.com> | 2019-10-22 01:37:30 +0300 |
---|---|---|
committer | Larry Ewing <lewing@microsoft.com> | 2019-10-22 02:45:57 +0300 |
commit | 20752df324d35dcd522688ee40ae3b0052da6a3d (patch) | |
tree | c2554431f50aac808033ceb9c19a13a52e159bb3 /sdks | |
parent | c1461e4a2d9c539506b88af786c948ff8a8bad7d (diff) |
[debugger][wasm] Check the length of the vars array. Fixes #17473
Diffstat (limited to 'sdks')
-rw-r--r-- | sdks/wasm/Mono.WebAssembly.DebuggerProxy/MonoProxy.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdks/wasm/Mono.WebAssembly.DebuggerProxy/MonoProxy.cs b/sdks/wasm/Mono.WebAssembly.DebuggerProxy/MonoProxy.cs index 2de89540cab..4ef0ff4e0c2 100644 --- a/sdks/wasm/Mono.WebAssembly.DebuggerProxy/MonoProxy.cs +++ b/sdks/wasm/Mono.WebAssembly.DebuggerProxy/MonoProxy.cs @@ -488,7 +488,7 @@ namespace WsProxy { // Trying to inspect the stack frame for DotNetDispatcher::InvokeSynchronously // results in a "Memory access out of bounds", causing 'values' to be null, // so skip returning variable values in that case. - while (values != null && i < var_ids.Length && i < values.Length) { + while (values != null && i < vars.Length && i < values.Length) { var value = values [i] ["value"]; if (((string)value ["description"]) == null) value ["description"] = value ["value"]?.ToString(); |