Skip to content

Commit a88d470

Browse files
thaystgCopilot
andauthored
[mono][debugger] Protecting against changing the protocol version (#122102)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0887419 commit a88d470

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mono/mono/component/debugger-agent.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7185,6 +7185,10 @@ vm_commands (int command, int id, guint8 *p, guint8 *end, Buffer *buf)
71857185
break;
71867186
}
71877187
case CMD_VM_SET_PROTOCOL_VERSION: {
7188+
if (protocol_version_set) {
7189+
PRINT_DEBUG_MSG (1, "[dbg] Trying to reset the protocol version, ignoring it\n");
7190+
break;
7191+
}
71887192
major_version = decode_int (p, &p, end);
71897193
minor_version = decode_int (p, &p, end);
71907194
if (p < end)

0 commit comments

Comments
 (0)