Cast byte to int. Bytes could be negative in java and, obviously, not in ECMA-119's size-holder entries %)
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dmitry Isaenko 2022-09-17 02:52:54 +03:00
parent 275cb4f3df
commit c721c30389

View file

@ -134,7 +134,7 @@ public class ISO9660 {
int entryOffset = 0; int entryOffset = 0;
while (entryOffset < entry.getDataSize()){ while (entryOffset < entry.getDataSize()){
byte entryLength = bytes[entryOffset]; int entryLength = Byte.toUnsignedInt(bytes[entryOffset]);
if (entryLength == 0) if (entryLength == 0)
break; break;