From e9d339465963968ea98cc98a5c218ccfef9b74f3 Mon Sep 17 00:00:00 2001 From: yairKoskas Date: Tue, 27 Dec 2022 09:19:52 +0200 Subject: [PATCH] Out-of-bounds read exists in the function modifySoname --- src/patchelf.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/patchelf.cc b/src/patchelf.cc index 398404c8..0c8e2607 100644 --- a/src/patchelf.cc +++ b/src/patchelf.cc @@ -1272,6 +1272,7 @@ void ElfFile::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)); } }