Skip to content

Commit

Permalink
Merge pull request #15734 from keithc-ca/soname-0.33.1
Browse files Browse the repository at this point in the history
Avoid NullPointerException reading SONAME
  • Loading branch information
pshipton authored Aug 17, 2022
2 parents e8f24e9 + 57e7f4d commit 1d9d168
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,9 @@ private void markTruncated() {
*/
public String readSONAME(ELFFileReader coreFileReader) {
ProgramHeaderEntry dynamicTableEntry = getDynamicTableEntry();
if (dynamicTableEntry == null) {
return null;
}
try {
long imageStart = dynamicTableEntry.virtualAddress;

Expand Down

0 comments on commit 1d9d168

Please sign in to comment.