Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Holmes <bill.holmes@unity3d.com>2022-09-02 15:44:30 +0300
committerGitHub <noreply@github.com>2022-09-02 15:44:30 +0300
commitb40e9939a7d07b30a75625692874f02bcc9be18f (patch)
tree7f8f165e0f96c9884c4459c4e2cc667a5de45d56
parent7152729110c5a6525e1dbbd3215430f3364830d6 (diff)
Avoid a crash when the debugger code fails to lookup the signature (#21543)
In this particular case, one of the method arguments has a type that can not be resolved and the signature code returns null.
-rw-r--r--mono/mini/debugger-agent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mono/mini/debugger-agent.c b/mono/mini/debugger-agent.c
index af329006e66..567a4da62d3 100644
--- a/mono/mini/debugger-agent.c
+++ b/mono/mini/debugger-agent.c
@@ -8616,6 +8616,8 @@ method_commands_internal (int command, MonoMethod *method, MonoDomain *domain, g
}
case CMD_METHOD_GET_PARAM_INFO: {
MonoMethodSignature *sig = mono_method_signature_internal (method);
+ if (!sig)
+ return ERR_INVALID_ARGUMENT;
guint32 i;
char **names;