GP-3543 additional vaidity checks for ELF Android relocation processing

and corrected related markup data
This commit is contained in:
ghidra1 2023-06-14 15:28:46 -04:00
parent 3736ae076c
commit 69289358f2
3 changed files with 11 additions and 7 deletions

View file

@ -95,7 +95,7 @@ public abstract class AbstractLeb128DataType extends BuiltIn implements Dynamic
}
// approximate bitLength from storage byte length
int bitLength = Math.max(64, len * 7);
int bitLength = Math.min(64, len * 7);
int mod = bitLength % 8;
if (mod != 0) {
bitLength += (8 - mod);