mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (CreateChild): maximum length of lpCommandLine is
32,768 characters, including the Unicode terminating null character. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e8d5304080
commit
6825f77323
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Apr 21 01:01:28 2011 Masaya Tarui <tarui@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (CreateChild): maximum length of lpCommandLine is
|
||||
32,768 characters, including the Unicode terminating null character.
|
||||
|
||||
Wed Apr 20 21:32:11 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* ext/date/date_strptime.c (date__strptime_internal): do not
|
||||
|
|
|
@ -1060,6 +1060,12 @@ CreateChild(const WCHAR *cmd, const WCHAR *prog, SECURITY_ATTRIBUTES *psa,
|
|||
|
||||
dwCreationFlags = (NORMAL_PRIORITY_CLASS);
|
||||
|
||||
if (lstrlenW(cmd) > 32767) {
|
||||
child->pid = 0; /* release the slot */
|
||||
errno = E2BIG;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
RUBY_CRITICAL({
|
||||
fRet = CreateProcessW(prog, (WCHAR *)cmd, psa, psa,
|
||||
psa->bInheritHandle, dwCreationFlags, NULL, NULL,
|
||||
|
|
Loading…
Add table
Reference in a new issue