summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2022-12-27 09:09:45 +0000
committerGitHub <noreply@github.com>2022-12-27 09:09:45 +0000
commit25307883a56c472d776c5e5363e4658fe2210a4e (patch)
treea21f566b87e4278be5d4f289ff48ea5424aecfd1
parent3f90e4925cde85185576bef8980bc68992c341b6 (diff)
parente9d339465963968ea98cc98a5c218ccfef9b74f3 (diff)
downloadpatchelf-25307883a56c472d776c5e5363e4658fe2210a4e.tar.gz
Merge pull request #451 from yairKoskas/master
Fix Out-of-bounds read in the function modifySoname
-rw-r--r--src/patchelf.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/patchelf.cc b/src/patchelf.cc
index 398404c..0c8e260 100644
--- a/src/patchelf.cc
+++ b/src/patchelf.cc
@@ -1272,6 +1272,7 @@ void ElfFile<ElfFileParamNames>::modifySoname(sonameMode op, const std::string &
if (rdi(dyn->d_tag) == DT_SONAME) {
dynSoname = dyn;
soname = strTab + rdi(dyn->d_un.d_val);
+ checkPointer(fileContents, strTab, rdi(dyn->d_un.d_val));
}
}