[Mono-bugs] [Bug 572223] sigsegv in mono_class_get_virtual_methods while JITting a verified method

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 20 08:52:39 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=572223

http://bugzilla.novell.com/show_bug.cgi?id=572223#c1


--- Comment #1 from Sebastien Pouliot <spouliot at novell.com> 2010-01-20 13:52:38 UTC ---
This is similar to other reported issues. The 'klass->methods' list can contain
NULL values (but maybe it should not) so we need to NULL check entries before
using them. 

This patch fix the crash.

Index: mono/metadata/class.c
===================================================================
--- mono/metadata/class.c    (revision 149902)
+++ mono/metadata/class.c    (working copy)
@@ -7410,7 +7415,7 @@
             method++;
         }
         while (method < &klass->methods [klass->method.count]) {
-            if (((*method)->flags & METHOD_ATTRIBUTE_VIRTUAL))
+            /* there can be NULL values in the list of methods #572223 */
+            if (*method && ((*method)->flags & METHOD_ATTRIBUTE_VIRTUAL)) 
                 break;
             method ++;
         }

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list