Skip to content

Commit df161c6

Browse files
yairKoskasEricson2314
authored andcommitted
Out-of-bounds read exists in the function modifySoname
(cherry picked from commit e9d3394)
1 parent 7f431b9 commit df161c6

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
@@ -1132,6 +1132,7 @@ void ElfFile<ElfFileParamNames>::modifySoname(sonameMode op, const std::string &
11321132
if (rdi(dyn->d_tag) == DT_SONAME) {
11331133
dynSoname = dyn;
11341134
soname = strTab + rdi(dyn->d_un.d_val);
1135+
checkPointer(fileContents, strTab, rdi(dyn->d_un.d_val));
11351136
}
11361137
}
11371138

0 commit comments

Comments
 (0)