Looking into test failure

This commit is contained in:
Anuken
2020-12-04 10:56:47 -05:00
parent a313ca8a26
commit 744b1b2037
2 changed files with 6 additions and 4 deletions

View File

@@ -140,7 +140,7 @@ public class LogicBlock extends Block{
int bytelen = stream.readInt();
//if(bytelen > maxByteLen) throw new RuntimeException("Malformed logic data! Length: " + bytelen);
if(bytelen > maxByteLen) throw new RuntimeException("Malformed logic data! Length: " + bytelen);
byte[] bytes = new byte[bytelen];
stream.readFully(bytes);
@@ -202,7 +202,7 @@ public class LogicBlock extends Block{
int version = stream.read();
int bytelen = stream.readInt();
//if(bytelen > maxByteLen) throw new RuntimeException("Malformed logic data! Length: " + bytelen);
if(bytelen > maxByteLen) throw new RuntimeException("Malformed logic data! Length: " + bytelen);
byte[] bytes = new byte[bytelen];
stream.readFully(bytes);