projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78a40c5
)
Don't assert on broken DM names.
author
Rodrigo Kumpera
<kumpera@gmail.com>
Sun, 13 Feb 2011 18:52:02 +0000
(19:52 +0100)
committer
Rodrigo Kumpera
<kumpera@gmail.com>
Sun, 13 Feb 2011 18:52:02 +0000
(19:52 +0100)
* reflection.c (reflection_methodbuilder_to_mono_method):
Avoid asserting if the method name has invalid surrogates.
Fixes #643372.
mono/metadata/reflection.c
patch
|
blob
|
history
diff --git
a/mono/metadata/reflection.c
b/mono/metadata/reflection.c
index ef7e2fb71b11fa3264a7df64dab32df10dfbd93a..bd03a87baa03a4e48c0a3b66ebaad6c5d9936617 100644
(file)
--- a/
mono/metadata/reflection.c
+++ b/
mono/metadata/reflection.c
@@
-10069,8
+10069,7
@@
reflection_methodbuilder_to_mono_method (MonoClass *klass,
m->slot = -1;
m->flags = rmb->attrs;
m->iflags = rmb->iattrs;
- m->name = mono_string_to_utf8_image (image, rmb->name, &error);
- g_assert (mono_error_ok (&error));
+ m->name = mono_string_to_utf8_image_ignore (image, rmb->name);
m->klass = klass;
m->signature = sig;
m->sre_method = TRUE;