summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2020-06-03 14:02:39 (GMT)
committerGitHub <noreply@github.com>2020-06-03 14:02:39 (GMT)
commit4aff679d9eaa1a3ec0228901a4e79b57361b4094 (patch)
tree60b717a134e8e88f5acd98321f3d36a7094edaae
parent640a35faaa9ec36cdc502126dddd8837c8a6e1f2 (diff)
parente2fe56fdf38bb14ff7ba4beac1c474a30430871b (diff)
downloadpatchelf-4aff679d9eaa1a3ec0228901a4e79b57361b4094.zip
patchelf-4aff679d9eaa1a3ec0228901a4e79b57361b4094.tar.gz
patchelf-4aff679d9eaa1a3ec0228901a4e79b57361b4094.tar.bz2
Merge pull request #171 from lkollar/no-memset-soname
Remove zeroing out logic in modifySoname
-rw-r--r--src/patchelf.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/patchelf.cc b/src/patchelf.cc
index f3b8a45..965686a 100644
--- a/src/patchelf.cc
+++ b/src/patchelf.cc
@@ -1077,13 +1077,6 @@ void ElfFile<ElfFileParamNames>::modifySoname(sonameMode op, const std::string &
return;
}
- /* Zero out the previous SONAME */
- unsigned int sonameSize = 0;
- if (soname) {
- sonameSize = strlen(soname);
- memset(soname, 'X', sonameSize);
- }
-
debug("new SONAME is '%s'\n", newSoname.c_str());
/* Grow the .dynstr section to make room for the new SONAME. */