Cut&pasted code got the cut before the off-by-one fix.
authorPaolo Molaro <lupus@oddwiz.org>
Thu, 9 Jan 2003 15:18:14 +0000 (15:18 -0000)
committerPaolo Molaro <lupus@oddwiz.org>
Thu, 9 Jan 2003 15:18:14 +0000 (15:18 -0000)
svn path=/trunk/mono/; revision=10303

mono/metadata/loader.c

index 706502a245ddba7dad0ade21316cd2977f6fa9bd..9168744a5e28de1301adc794c1d5bb2b90530519 100644 (file)
@@ -626,7 +626,7 @@ mono_method_get_marshal_info (MonoMethod *method, MonoMarshalSpec **mspecs)
                        if (idx + 1 < methodt->rows)
                                lastp = mono_metadata_decode_row_col (methodt, idx + 1, MONO_METHOD_PARAMLIST);
                        else
-                               lastp = paramt->rows;
+                               lastp = paramt->rows + 1;
 
                        for (i = param_index; i < lastp; ++i) {
                                mono_metadata_decode_row (paramt, i -1, cols, MONO_PARAM_SIZE);