[Mono-dev] [PATCH] ves_icall_get_enum_info crashes mono

Rodrigo Kumpera kumpera at gmail.com
Tue Jul 24 17:19:31 EDT 2007


Hi.

If you call Enum.GetNames for an enum which the basefield is not named
"value__", mono crashes. The function ves_icall_get_enum_info should check
for static field and not the name. Attached are the patch to fix it and the
test used.

Cheers,
Rodrigo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070724/86673240/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: base_field.diff
Type: text/x-patch
Size: 473 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070724/86673240/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enum-bug.il
Type: text/x-msil
Size: 2524 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070724/86673240/attachment-0001.bin 


More information about the Mono-devel-list mailing list