]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Don't write uninitialized data into zeroth section header entry.
authorUlrich Drepper <drepper@myware66.akkadia.org>
Wed, 11 Feb 2009 01:33:57 +0000 (17:33 -0800)
committerUlrich Drepper <drepper@myware66.akkadia.org>
Wed, 11 Feb 2009 01:33:57 +0000 (17:33 -0800)
libelf/ChangeLog
libelf/elf32_updatefile.c

index e6ac1d21b5b77c943bbfe0ade83d7e71bc940f9b..30118e29fdbdf1f025e644de55f06a597f5bf021 100644 (file)
@@ -1,3 +1,8 @@
+2009-02-10  Ulrich Drepper  <drepper@redhat.com>
+
+       * elf32_updatefile.c (updatefile): Fir the zeroth section we still
+       have to copy the section header.
+
 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
 
        * elf_strptr.c: Add comment re possible problem.
index def4c09a7ab669d777f5e344431761b1adc7d6ce..a4d83a1c6762a79fbcf68647bc3a6dffff18424b 100644 (file)
@@ -662,7 +662,7 @@ __elfw2(LIBELFBITS,updatefile) (Elf *elf, int change_bo, size_t shnum)
              /* The dummy section header entry.  It should not be
                 possible to mark this "section" as dirty.  */
              assert ((scn->flags & ELF_F_DIRTY) == 0);
-             continue;
+             goto next;
            }
 
          ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS);