[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    valgrind/coregrind
From:       Jeremy Fitzhardinge <jeremy () goop ! org>
Date:       2005-03-11 2:54:40
Message-ID: 20050311025440.A190C17AA0 () office ! kde ! org
[Download RAW message or body]

CVS commit by fitzhardinge: 

Memset the whole ehdr structure (though this will only initialize the padding).


  M +1 -1      vg_signals.c   1.137


--- valgrind/coregrind/vg_signals.c  #1.136:1.137
@@ -922,5 +922,5 @@ static Bool should_dump(const Segment *s
 static void fill_ehdr(Elf32_Ehdr *ehdr, Int num_phdrs)
 {
-   VG_(memset)(ehdr, 0, sizeof(ehdr));
+   VG_(memset)(ehdr, 0, sizeof(*ehdr));
 
    VG_(memcpy)(ehdr->e_ident, ELFMAG, SELFMAG);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic