[Mono-bugs] [Bug 553306] [verifier] SIGSEGV in mono_class_init on a bad assembly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 24 05:51:53 EST 2009



--- Comment #5 from Rodrigo Kumpera <rkumpera at novell.com> 2009-11-24 10:51:52 UTC ---
Created an attachment (id=329157)
 --> (http://bugzilla.novell.com/attachment.cgi?id=329157)
Patch that fixes field_from_memberref

What about this patch?

It reworks field_from_memberref by resolving the class first then the field
signature. This way we have it for the two cases I introduced it[1].

I took the opportunity to remove a ton of code duplication from the function to
make it saner. It's possible to remove the switch statement as well, but I'll
leave it for the next time.

Please review.

[1] One was using klass uninited, so it was even worse before my "fix".

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