Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37527312
en ru br
ALT Linux repos
S:0.16-alt1
5.0: 0.13-alt1
4.1: 0.13-alt1
4.0: 0.13-alt1
3.0: 0.13-alt1

Group :: Development/Other
RPM: chrpath

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: chrpath-rh-NULL-entry.patch
Download


--- chrpath/killrpath.c
+++ chrpath/killrpath.c
@@ -73,8 +73,11 @@ killrpath(const char *filename)
        if ( ! elf_dynpath_tag(dyns[i].d_tag) )
         dynpos++;
      }
-   for (; dynpos < i; dynpos++)
+   for (; dynpos < i; dynpos++) {
      dyns[dynpos].d_tag = DT_NULL;
+     dyns[dynpos].d_un.d_val = 0x0;
+   }
+
 
    if (lseek(fd, phdr.p_offset, SEEK_SET) == -1
        || write(fd, dyns, phdr.p_filesz) != (int)phdr.p_filesz)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin