mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-28 09:51:37 +08:00
GT-2890: Fixed AddressOutOfBoundsException in EmbeddedMediaAnalyer.
This commit is contained in:
+8
-2
@@ -126,8 +126,14 @@ public class EmbeddedMediaAnalyzer extends AbstractAnalyzer {
|
|||||||
}
|
}
|
||||||
// skip either the valid data that was found or skip one byte
|
// skip either the valid data that was found or skip one byte
|
||||||
// then do the next search
|
// then do the next search
|
||||||
start = found.add(skipLen);
|
try {
|
||||||
found = memory.findBytes(start, end, mediaBytes, mask, true, monitor);
|
start = found.add(skipLen);
|
||||||
|
found = memory.findBytes(start, end, mediaBytes, mask, true, monitor);
|
||||||
|
}
|
||||||
|
catch (AddressOutOfBoundsException e) {
|
||||||
|
// If media was at the very end of the address space, we will end up here
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user