mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
win32ole.c: check overflow
* ext/win32ole/win32ole.c (ole_invoke): check integer overflow on win64 platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b38142e972
commit
f9b7a2a33f
1 changed files with 1 additions and 1 deletions
|
@ -2553,7 +2553,7 @@ ole_invoke(int argc, VALUE *argv, VALUE self, USHORT wFlags, BOOL is_bracket)
|
|||
/*------------------------------------------
|
||||
hash object ==> named dispatch parameters
|
||||
--------------------------------------------*/
|
||||
cNamedArgs = RHASH_SIZE(param);
|
||||
cNamedArgs = rb_long2int(RHASH_SIZE(param));
|
||||
op.dp.cArgs = cNamedArgs + argc - 2;
|
||||
op.pNamedArgs = ALLOCA_N(OLECHAR*, cNamedArgs + 1);
|
||||
op.dp.rgvarg = ALLOCA_N(VARIANTARG, op.dp.cArgs);
|
||||
|
|
Loading…
Reference in a new issue