mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +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;
|
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…
Add table
Add a link
Reference in a new issue