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 | 9426f1850cc146e721ecf872a81fffaa2ce3b0d1 (patch) | |
tree | f226e09de58002f36886e6e800731674817acbbe | |
parent | 82025fbb7a8f355963b01e444a57a79ae35c9568 (diff) | |
download | gdb-9426f1850cc146e721ecf872a81fffaa2ce3b0d1.tar.gz |
Copy only as much information as possible to avoid stack corruption.
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/elf.c | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 02a47ace9de..734f759dae9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-01-26 Egor Duda <deo@logos-m.ru> + + * elf.c (elfcore_grok_win32pstatus): Copy only as much information + as possible to avoid stack corruption. + 2002-01-26 Richard Henderson <rth@redhat.com> * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext @@ -33,7 +38,7 @@ * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid unsigned overflow when new_offset < old_offset. -2002-24-01 Philipp Thomas <pthomas@suse.de> +2002-01-24 Philipp Thomas <pthomas@suse.de> * bfd.c (_bfd_abort): Fix typo. diff --git a/bfd/elf.c b/bfd/elf.c index ea712fb50a1..29c08d7bc91 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -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) { |