mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/Win32API/Win32API (Win32API_initialize): should check number of
papameters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
280039eb20
commit
5208fec1cf
1 changed files with 5 additions and 0 deletions
|
@ -106,6 +106,11 @@ Win32API_initialize(self, dllname, proc, import, export)
|
|||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if (16 < RARRAY(a_import)->len) {
|
||||
rb_raise(rb_eRuntimeError, "too many parameters: %d\n", RARRAY(a_import)->len);
|
||||
}
|
||||
|
||||
rb_iv_set(self, "__import__", a_import);
|
||||
|
||||
if (NIL_P(export)) {
|
||||
|
|
Loading…
Reference in a new issue