diff options
author | Nick Clifton <nickc@redhat.com> | 2002-01-26 10:32:21 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-01-26 10:32:21 +0000 |
commit | e8eab623dff627368a5bbe077aad1caf908e8a29 (patch) | |
tree | b8331f292a3588c42e550565418c5718c0474940 /bfd/elf.c | |
parent | 1caa7b23543f60129a7405b5db0c6f550f6ac042 (diff) | |
download | gdb-e8eab623dff627368a5bbe077aad1caf908e8a29.zip gdb-e8eab623dff627368a5bbe077aad1caf908e8a29.tar.gz gdb-e8eab623dff627368a5bbe077aad1caf908e8a29.tar.bz2 |
Copy only as much information as possible to avoid stack corruption.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6282,7 +6282,7 @@ elfcore_grok_win32pstatus (abfd, note) if (note->descsz < sizeof (pstatus)) return true; - memcpy (&pstatus, note->descdata, note->descsz); + memcpy (&pstatus, note->descdata, sizeof (pstatus)); switch (pstatus.data_type) { |