projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[metadata] Fix a potential crasher.
[mono.git]
/
mono
/
metadata
/
debug-helpers.c
diff --git
a/mono/metadata/debug-helpers.c
b/mono/metadata/debug-helpers.c
index f38a054125710fab5281f9e0facb68b7aa1e5e4f..a20e8ae06e03a9ade8d5e64419f4d0a4b9122220 100644
(file)
--- a/
mono/metadata/debug-helpers.c
+++ b/
mono/metadata/debug-helpers.c
@@
-468,6
+468,8
@@
match_class (MonoMethodDesc *desc, int pos, MonoClass *klass)
gboolean
mono_method_desc_full_match (MonoMethodDesc *desc, MonoMethod *method)
{
+ if (!desc->klass)
+ return FALSE;
if (!match_class (desc, strlen (desc->klass), method->klass))
return FALSE;