Skip to content

Commit 4aff679

Browse files
authored
Merge pull request #171 from lkollar/no-memset-soname
Remove zeroing out logic in modifySoname
2 parents 640a35f + e2fe56f commit 4aff679

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/patchelf.cc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,13 +1077,6 @@ void ElfFile<ElfFileParamNames>::modifySoname(sonameMode op, const std::string &
10771077
return;
10781078
}
10791079

1080-
/* Zero out the previous SONAME */
1081-
unsigned int sonameSize = 0;
1082-
if (soname) {
1083-
sonameSize = strlen(soname);
1084-
memset(soname, 'X', sonameSize);
1085-
}
1086-
10871080
debug("new SONAME is '%s'\n", newSoname.c_str());
10881081

10891082
/* Grow the .dynstr section to make room for the new SONAME. */

0 commit comments

Comments
 (0)