mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-10-23 21:50:49 +00:00
Fix 64 bits Ext4 inode table offset calculation.
This commit is contained in:
parent
75ddd08bbd
commit
e4ba4d62d0
|
@ -130,7 +130,7 @@ public class Ext4Analyzer extends FileFormatAnalyzer {
|
|||
monitor.checkCanceled();
|
||||
long inodeTableBlockOffset = groupDescriptors[i].getBg_inode_table_lo() & 0xffffffffL;
|
||||
if( is64Bit ) {
|
||||
inodeTableBlockOffset = (groupDescriptors[i].getBg_inode_table_hi() << 32) | inodeTableBlockOffset;
|
||||
inodeTableBlockOffset = (((long) groupDescriptors[i].getBg_inode_table_hi()) << 32) | inodeTableBlockOffset;
|
||||
}
|
||||
long offset = inodeTableBlockOffset * blockSize;
|
||||
reader.setPointerIndex(offset);
|
||||
|
|
Loading…
Reference in New Issue
Block a user