Skip to content

Commit

Permalink
Avoid NullPointerException reading SONAME
Browse files Browse the repository at this point in the history
Signed-off-by: Keith W. Campbell <[email protected]>
  • Loading branch information
keithc-ca committed Aug 17, 2022
1 parent e8f24e9 commit 57e7f4d
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 57e7f4d

Please sign in to comment.