Skip to content

Commit

Permalink
[jit] Fix a buffer overflow in mini_get_gsharedvt_out_sig_wrapper_sig…
Browse files Browse the repository at this point in the history
…nature ().

Fixes #12130.
  • Loading branch information
vargaz authored and marek-safar committed Dec 19, 2018
1 parent 2a91002 commit a0db72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono/mini/mini-generic-sharing.c
Expand Up @@ -1732,7 +1732,7 @@ mini_get_interp_lmf_wrapper (void)
MonoMethodSignature*
mini_get_gsharedvt_out_sig_wrapper_signature (gboolean has_this, gboolean has_ret, int param_count)
{
MonoMethodSignature *sig = g_malloc0 (sizeof (MonoMethodSignature) + (32 * sizeof (MonoType*)));
MonoMethodSignature *sig = g_malloc0 (sizeof (MonoMethodSignature) + ((param_count + 3) * sizeof (MonoType*)));
int i, pindex;
MonoType *int_type = mono_get_int_type ();

Expand Down

0 comments on commit a0db72b

Please sign in to comment.