added more detail to length exception
@@ -367,7 +367,7 @@ static int readLength(InputStream s, int limit)
if (length >= limit) // after all we must have read at least 1 byte
{
- throw new IOException("corrupted stream - out of bounds length found");
+ throw new IOException("corrupted stream - out of bounds length found: " + length + " >= " + limit);
}
}
