mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-07-30 07:18:37 -09:00
GP-6713 check length calc
This commit is contained in:
@@ -25,7 +25,10 @@ public class BTreeRootNodeDescriptor extends BTreeNodeDescriptor {
|
||||
|
||||
nodes.add( this );
|
||||
|
||||
int nodeSize = headerRecord.getNodeSize() & 0xffff;
|
||||
int nodeSize = Short.toUnsignedInt(headerRecord.getNodeSize());
|
||||
if (nodeSize == 0) {
|
||||
throw new IOException("Bad nodeSize: " + nodeSize);
|
||||
}
|
||||
|
||||
for ( int i = nodeSize ; i < reader.length() ; i += nodeSize ) {
|
||||
reader.setPointerIndex( i );
|
||||
|
||||
Reference in New Issue
Block a user