mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-01 07:46:56 +08:00
Merge branch 'GP-2819_ryanmkurtz_pe' (Closes #4028)
This commit is contained in:
@@ -367,6 +367,11 @@ public class FileHeader implements StructConverter {
|
||||
}
|
||||
|
||||
void processSymbols() throws IOException {
|
||||
if (ntHeader.isRVAResoltionSectionAligned()) {
|
||||
// Symbols table offsets are only valid when parsing from file, not memory
|
||||
return;
|
||||
}
|
||||
|
||||
if (isLordPE()) {
|
||||
return;
|
||||
}
|
||||
@@ -414,6 +419,10 @@ public class FileHeader implements StructConverter {
|
||||
* @throws IOException if io error
|
||||
*/
|
||||
long getStringTableOffset() throws IOException {
|
||||
if (ntHeader.isRVAResoltionSectionAligned()) {
|
||||
// String table offsets are only valid when parsing from file, not memory
|
||||
return -1;
|
||||
}
|
||||
if (pointerToSymbolTable <= 0 || numberOfSymbols < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user