Ghidra is a software reverse engineering (SRE) framework
Fix 64 bits Ext4 inode table offset calculation.
Alessandro Gattie4ba4d62d0af
diff --git a/Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ext4/Ext4Analyzer.java b/Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ext4/Ext4Analyzer.javaindex 54ead1ac16..841a92e621 100644--- a/Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ext4/Ext4Analyzer.java+++ b/Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ext4/Ext4Analyzer.java@@ -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);