Copy only as much information as possible to avoid stack corruption.
authorNick Clifton <nickc@redhat.com>
Sat, 26 Jan 2002 10:32:21 +0000 (10:32 +0000)
committerNick Clifton <nickc@redhat.com>
Sat, 26 Jan 2002 10:32:21 +0000 (10:32 +0000)
bfd/ChangeLog
bfd/elf.c

index 02a47ace9de504608cde6228333c67ef13cce0c7..734f759dae9111ce46d38d019a99120be07be60c 100644 (file)
@@ -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.
 
index ea712fb50a1f27b2924a2552f03ce5744707f4a2..29c08d7bc91e2b42372f308196339d54df64a59d 100644 (file)
--- 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)
     {
This page took 0.028076 seconds and 4 git commands to generate.