diff options
author | Miguel de Icaza <miguel@gnome.org> | 2003-03-07 22:30:37 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2003-03-07 22:30:37 +0300 |
commit | 2d3817802d29d1a75e13c3bbb90d1ca45a61349d (patch) | |
tree | 17fbdfc095d61a1a4228414e1db7bc1b01b0d0ee | |
parent | 9685359e9f3722a604d5b9b860085e24d9554a72 (diff) |
2003-03-07 Miguel de Icaza <miguel@ximian.com>
* class.c (mono_marshal_load_type_info): Fix buglet: Noticed when
fixing a warning for a miss-used prototype, would have cause
random memory corruption.
svn path=/trunk/mono/; revision=12326
-rw-r--r-- | mono/metadata/ChangeLog | 6 | ||||
-rw-r--r-- | mono/metadata/class.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/mono/metadata/ChangeLog b/mono/metadata/ChangeLog index 4dd4da47322..7d2781a115c 100644 --- a/mono/metadata/ChangeLog +++ b/mono/metadata/ChangeLog @@ -1,3 +1,9 @@ +2003-03-07 Miguel de Icaza <miguel@ximian.com> + + * class.c (mono_marshal_load_type_info): Fix buglet: Noticed when + fixing a warning for a miss-used prototype, would have cause + random memory corruption. + 2003-03-07 Martin Baulig <martin@ximian.com> * marshal.c (mono_marshal_free_array): That "TESTFREE %p" was diff --git a/mono/metadata/class.c b/mono/metadata/class.c index 08b712be88d..69ca9616dcf 100644 --- a/mono/metadata/class.c +++ b/mono/metadata/class.c @@ -50,6 +50,7 @@ mono_class_from_typeref (MonoImage *image, guint32 type_token) const char *name, *nspace; MonoClass *res; MonoAssembly **references; + MonoImageOpenStatus status; mono_metadata_decode_row (t, (type_token&0xffffff)-1, cols, MONO_TYPEREF_SIZE); @@ -81,7 +82,7 @@ mono_class_from_typeref (MonoImage *image, guint32 type_token) break; } - mono_image_load_references (image); + mono_image_load_references (image, &status); references = image->references; if (!references || !references [idx-1]) { /* |