diff options
author | Christopher Faylor <me@cgf.cx> | 2005-02-27 03:03:19 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-02-27 03:03:19 +0000 |
commit | 78d9eaa5eac0e037206b481c4c5512936d53524d (patch) | |
tree | 6962497b9bfc589173ac9a8bc2637b1bf6726edc /winsup/utils/strace.cc | |
parent | 1a9a235a5af29c55f5fe84745b595f0d247f888e (diff) | |
download | cygnal-78d9eaa5eac0e037206b481c4c5512936d53524d.tar.gz cygnal-78d9eaa5eac0e037206b481c4c5512936d53524d.tar.bz2 cygnal-78d9eaa5eac0e037206b481c4c5512936d53524d.zip |
* kill (getsig): Avoid buffer overflow when generating a signal name.
* strace.cc (handle_output_debug_string): Make error a little more specific.
Diffstat (limited to 'winsup/utils/strace.cc')
-rw-r--r-- | winsup/utils/strace.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc index 747880cbe..998350c9c 100644 --- a/winsup/utils/strace.cc +++ b/winsup/utils/strace.cc @@ -446,8 +446,8 @@ handle_output_debug_string (DWORD id, LPVOID p, unsigned mask, FILE *ofile) if (!WriteProcessMemory (hchild, (LPVOID) n, &new_flag, sizeof (new_flag), &nbytes)) error (0, - "couldn't write strace flag to subprocess, windows error %d", - GetLastError ()); + "couldn't write strace flag to subprocess at %p, windows error %d", + n, GetLastError ()); return; } |