* exceptions.cc (try_to_debug): Fix size of dbg_cmd (CID 59929).
This commit is contained in:
parent
111727904f
commit
f2e040ce76
|
@ -1,3 +1,7 @@
|
|||
2014-05-19 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* exceptions.cc (try_to_debug): Fix size of dbg_cmd (CID 59929).
|
||||
|
||||
2014-05-18 David Stacey <drstacey@tiscali.co.uk>
|
||||
|
||||
* syscalls.cc (getusershell): Fix buffer overrun (Coverity ID 59932).
|
||||
|
|
|
@ -489,7 +489,7 @@ try_to_debug (bool waitloop)
|
|||
console_printf ("*** starting debugger for pid %u, tid %u\n",
|
||||
cygwin_pid (GetCurrentProcessId ()), GetCurrentThreadId ());
|
||||
BOOL dbg;
|
||||
WCHAR dbg_cmd[strlen(debugger_command)];
|
||||
WCHAR dbg_cmd[strlen(debugger_command) + 1];
|
||||
sys_mbstowcs (dbg_cmd, strlen(debugger_command) + 1, debugger_command);
|
||||
dbg = CreateProcessW (NULL,
|
||||
dbg_cmd,
|
||||
|
|
Loading…
Reference in New Issue