Skip to content

Commit

Permalink
improve ICNSParser
Browse files Browse the repository at this point in the history
  • Loading branch information
tballison committed Apr 8, 2020
1 parent bc93f5e commit f9607f9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ public void parse(
tempByteArray[2] = full_file[offset + 6];
tempByteArray[3] = full_file[offset + 7];
int icon_length = java.nio.ByteBuffer.wrap(tempByteArray).getInt();
if (icon_length <= 0) {
break;
}
offset = offset + icon_length;
}
String icon_details = "", iconmask_details = "", bitsPerPixel,dimensions;
Expand Down

0 comments on commit f9607f9

Please sign in to comment.