mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-3543 additional vaidity checks for ELF Android relocation processing
and corrected related markup data
This commit is contained in:
parent
3736ae076c
commit
69289358f2
3 changed files with 11 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue