* kill (getsig): Avoid buffer overflow when generating a signal name.
* strace.cc (handle_output_debug_string): Make error a little more specific.
This commit is contained in:
parent
1a9a235a5a
commit
78d9eaa5ea
|
@ -1,3 +1,9 @@
|
||||||
|
2005-02-26 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* kill (getsig): Avoid buffer overflow when generating a signal name.
|
||||||
|
|
||||||
|
* strace.cc (handle_output_debug_string): Make error a little more specific.
|
||||||
|
|
||||||
2005-02-23 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
|
2005-02-23 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
|
||||||
|
|
||||||
* cygpath.cc (usage): Clarify help output to indicate acceptance
|
* cygpath.cc (usage): Clarify help output to indicate acceptance
|
||||||
|
|
|
@ -87,7 +87,7 @@ getsig (const char *in_sig)
|
||||||
sig = in_sig;
|
sig = in_sig;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sprintf (buf, "SIG%s", in_sig);
|
sprintf (buf, "SIG%-20.20s", in_sig);
|
||||||
sig = buf;
|
sig = buf;
|
||||||
}
|
}
|
||||||
intsig = strtosigno (sig) ?: atoi (in_sig);
|
intsig = strtosigno (sig) ?: atoi (in_sig);
|
||||||
|
|
|
@ -446,8 +446,8 @@ handle_output_debug_string (DWORD id, LPVOID p, unsigned mask, FILE *ofile)
|
||||||
if (!WriteProcessMemory (hchild, (LPVOID) n, &new_flag,
|
if (!WriteProcessMemory (hchild, (LPVOID) n, &new_flag,
|
||||||
sizeof (new_flag), &nbytes))
|
sizeof (new_flag), &nbytes))
|
||||||
error (0,
|
error (0,
|
||||||
"couldn't write strace flag to subprocess, windows error %d",
|
"couldn't write strace flag to subprocess at %p, windows error %d",
|
||||||
GetLastError ());
|
n, GetLastError ());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue