From: Thays Grazia Date: Thu, 15 Apr 2021 12:37:50 +0000 (-0300) Subject: Fix side effect of icordbg (#51264) X-Git-Tag: submit/tizen/20210909.063632~2005 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2acee9119febc68c024242bf3c9385cbdd3e8bc1;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fix side effect of icordbg (#51264) --- diff --git a/src/mono/mono/mini/debugger-agent.c b/src/mono/mono/mini/debugger-agent.c index 25a90cc..1d36ab7 100644 --- a/src/mono/mono/mini/debugger-agent.c +++ b/src/mono/mono/mini/debugger-agent.c @@ -6623,7 +6623,7 @@ vm_commands (int command, int id, guint8 *p, guint8 *end, Buffer *buf) case CMD_VM_SET_PROTOCOL_VERSION: { major_version = decode_int (p, &p, end); minor_version = decode_int (p, &p, end); - if (p <= end) + if (p < end) using_icordbg = decode_byte (p, &p, end); protocol_version_set = TRUE; PRINT_DEBUG_MSG (1, "[dbg] Protocol version %d.%d, client protocol version %d.%d.\n", MAJOR_VERSION, MINOR_VERSION, major_version, minor_version);