mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-16 17:57:43 +00:00
Don't get a character that's out of range.
This commit is contained in:
parent
ef61965acf
commit
d9ca04e476
@ -105,7 +105,7 @@ public class DataConversion {
|
||||
String ascii = new String(array, curOffset, lineLen, java.nio.charset.StandardCharsets.US_ASCII);
|
||||
for (int i = 0; i < 16; i++) {
|
||||
char c = ' ';
|
||||
if (i < lineLen) {
|
||||
if (i < ascii.length()) {
|
||||
c = ascii.charAt(i);
|
||||
int dec = (int) c;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user