Skip to content

Commit e9d3394

Browse files
committed
Out-of-bounds read exists in the function modifySoname
1 parent 3f90e49 commit e9d3394

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/patchelf.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,6 +1272,7 @@ void ElfFile<ElfFileParamNames>::modifySoname(sonameMode op, const std::string &
12721272
if (rdi(dyn->d_tag) == DT_SONAME) {
12731273
dynSoname = dyn;
12741274
soname = strTab + rdi(dyn->d_un.d_val);
1275+
checkPointer(fileContents, strTab, rdi(dyn->d_un.d_val));
12751276
}
12761277
}
12771278

0 commit comments

Comments
 (0)