mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-12 04:03:53 +00:00
Revert accidentally pushed "LCEMP RCE fixes"
This reverts commit d557ca2dfb.
This commit is contained in:
parent
d557ca2dfb
commit
a358a3caae
27 changed files with 80 additions and 222 deletions
|
|
@ -10,19 +10,8 @@
|
|||
//offset - the offset in the buffer of the first byte to read.
|
||||
//length - the maximum number of bytes to read from the buffer.
|
||||
ByteArrayInputStream::ByteArrayInputStream(byteArray buf, unsigned int offset, unsigned int length)
|
||||
: pos(offset), mark(offset)
|
||||
: pos( offset ), count( min( offset+length, buf.length ) ), mark( offset )
|
||||
{
|
||||
if (offset > buf.length)
|
||||
{
|
||||
count = buf.length;
|
||||
}
|
||||
else if (length > buf.length - offset)
|
||||
{
|
||||
count = buf.length;
|
||||
}
|
||||
else
|
||||
{
|
||||
count = offset + length;
|
||||
this->buf = buf;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue