mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 02:07:42 +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);
|
String ascii = new String(array, curOffset, lineLen, java.nio.charset.StandardCharsets.US_ASCII);
|
||||||
for (int i = 0; i < 16; i++) {
|
for (int i = 0; i < 16; i++) {
|
||||||
char c = ' ';
|
char c = ' ';
|
||||||
if (i < lineLen) {
|
if (i < ascii.length()) {
|
||||||
c = ascii.charAt(i);
|
c = ascii.charAt(i);
|
||||||
int dec = (int) c;
|
int dec = (int) c;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user