[Mono-bugs] [Bug 508389] Mono 2.4 crashes due to accessing freed data structures

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jun 8 22:03:27 EDT 2009


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

User uweigand at de.ibm.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=508389#c10


Ulrich Weigand <uweigand at de.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




--- Comment #10 from Ulrich Weigand <uweigand at de.ibm.com>  2009-06-08 20:03:25 MDT ---
Thanks for taking care of this!

Unfortunately, it seems that while you've added the
mono_marshal_free_inflated_wrappers function to marshal.c, you didn't actually
add the *call* to that function from free_inflated_method, so this change
doesn't really do anything yet :-/

Could you please add this remaining piece of the patch as well?  Thanks!

--- mono-2.4-orig/mono/metadata/metadata.c
+++ mono-2.4/mono/metadata/metadata.c
@@ -2245,6 +2247,8 @@ free_inflated_method (MonoMethodInflated
        int i;
        MonoMethod *method = (MonoMethod*)imethod;

+       mono_marshal_free_inflated_wrappers (method);
+
        if (method->signature)
                mono_metadata_free_inflated_signature (method->signature);

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


More information about the mono-bugs mailing list