From: Zoltan Varga Date: Mon, 2 Oct 2017 21:31:00 +0000 (+0200) Subject: [runtime] Store implmap_idx as a guint32 to avoid overflows if the implmap table... X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mono.git;a=commitdiff_plain;h=9369ed6e23ee9e822a3aa2318ed55f083241fbcb [runtime] Store implmap_idx as a guint32 to avoid overflows if the implmap table has more than 64k rows. Fixes #59881. --- diff --git a/mono/metadata/class-internals.h b/mono/metadata/class-internals.h index e3d9e187417..ed4190372cd 100644 --- a/mono/metadata/class-internals.h +++ b/mono/metadata/class-internals.h @@ -111,7 +111,7 @@ struct _MonoMethodPInvoke { gpointer addr; /* add marshal info */ guint16 piflags; /* pinvoke flags */ - guint16 implmap_idx; /* index into IMPLMAP */ + guint32 implmap_idx; /* index into IMPLMAP */ }; /*