mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-07 21:25:06 +00:00
Throw exception when trying to seek to negative address
This commit is contained in:
@@ -60,6 +60,9 @@ public class MemoryInputStream extends SeekableInputStream {
|
||||
|
||||
@Override
|
||||
public void seek(long pos) throws IOException {
|
||||
if (pos < 0) {
|
||||
throw new IOException("Seek to negative position");
|
||||
}
|
||||
this.pos = pos;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user