Confirmed fix from Marek for #xambug 8320.
authorPaolo Molaro <lupus@oddwiz.org>
Tue, 13 Nov 2012 11:04:39 +0000 (12:04 +0100)
committerPaolo Molaro <lupus@oddwiz.org>
Tue, 13 Nov 2012 11:06:56 +0000 (12:06 +0100)
The memberref table is not a valid option for computing the
MemberRefParent tag size.

mono/metadata/metadata.c

index bd07b1ff97ccddd0469b7ab81db09e709a124cac..7f5a1757a1b20e18db2f9fe52e09f0936f592e36 100644 (file)
@@ -757,7 +757,6 @@ mono_metadata_compute_size (MonoImage *meta, int tableindex, guint32 *result_bit
                        n = MAX (n, meta->tables [MONO_TABLE_METHOD].rows);
                        n = MAX (n, meta->tables [MONO_TABLE_MODULEREF].rows);
                        n = MAX (n, meta->tables [MONO_TABLE_TYPESPEC].rows);
-                       n = MAX (n, meta->tables [MONO_TABLE_MEMBERREF].rows);
 
                        /* 3 bits to encode */
                        field_size = rtsize (n, 16 - 3);