mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-02-16 15:40:14 +00:00
GT-3252: Fixing infinite loop in MemoryBlockDB.putBytes (fixes #1149).
This commit is contained in:
parent
eb97637333
commit
083b5f61cc
@ -477,7 +477,7 @@ public class MemoryBlockDB implements MemoryBlock {
|
|||||||
int totalCopied = 0;
|
int totalCopied = 0;
|
||||||
try {
|
try {
|
||||||
while (totalCopied < len) {
|
while (totalCopied < len) {
|
||||||
SubMemoryBlock subBlock = getSubBlock(offset);
|
SubMemoryBlock subBlock = getSubBlock(offset + totalCopied);
|
||||||
totalCopied += subBlock.putBytes(offset + totalCopied, b, off + totalCopied,
|
totalCopied += subBlock.putBytes(offset + totalCopied, b, off + totalCopied,
|
||||||
len - totalCopied);
|
len - totalCopied);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user