mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
GT-3252: Fixing infinite loop in MemoryBlockDB.putBytes (fixes #1149).
This commit is contained in:
parent
eb97637333
commit
083b5f61cc
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ public class MemoryBlockDB implements MemoryBlock {
|
|||
int totalCopied = 0;
|
||||
try {
|
||||
while (totalCopied < len) {
|
||||
SubMemoryBlock subBlock = getSubBlock(offset);
|
||||
SubMemoryBlock subBlock = getSubBlock(offset + totalCopied);
|
||||
totalCopied += subBlock.putBytes(offset + totalCopied, b, off + totalCopied,
|
||||
len - totalCopied);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue