[mono/mono] 31009c93: [aot] Fix a typo causing crashes when using async jit info.

"Zoltan Varga ([email protected])" <[email protected]> Mon, 11 Nov 2013 18:23:11 +0000
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <0000014248672ec4-b8c938a6-a37e-45f7-b3dd-e6426d967d05-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/mono
  Compare: https://github.com/mono/mono/compare/d5f0a573ce11...31009c93cac9

   Commit: 31009c93cac91fb6244beea104f1b40ef2b65a29
   Author: Zoltan Varga <[email protected]> (vargaz)
     Date: 2013-11-11 18:22:06 GMT
      URL: https://github.com/mono/mono/commit/31009c93cac91fb6244beea104f1b40ef2b65a29

[aot] Fix a typo causing crashes when using async jit info.

Changed paths:
  M mono/mini/aot-runtime.c

Modified: mono/mini/aot-runtime.c
===================================================================
@@ -2918,7 +2918,7 @@
 				len = old_table[0].method_index;
 			else
 				len = 1;
-			new_table = alloc0_jit_info_data (domain, (len * 1) * sizeof (JitInfoMap), async);
+			new_table = alloc0_jit_info_data (domain, (len + 1) * sizeof (JitInfoMap), async);
 			if (old_table)
 				memcpy (new_table, old_table, len * sizeof (JitInfoMap));
 			new_table [0].method_index = len + 1;


_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches