Skip to content

Commit

Permalink
Merge pull request #451 from yairKoskas/master
Browse files Browse the repository at this point in the history
Fix Out-of-bounds read in the function modifySoname
  • Loading branch information
Mic92 authored Dec 27, 2022
2 parents 3f90e49 + e9d3394 commit 2530788
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/patchelf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit 2530788

Please sign in to comment.