mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Halt parsing when invalid packets are found
This commit is contained in:
parent
296c6904b9
commit
a8b26a3caf
@ -54,6 +54,7 @@ abstract class RakNetDataPacket extends stdClass{
|
||||
|
||||
protected function get($len){
|
||||
if($len <= 0){
|
||||
$this->offset = strlen($this->buffer) - 1;
|
||||
return "";
|
||||
}
|
||||
if($len === true){
|
||||
|
@ -36,6 +36,7 @@ class RakNetParser{
|
||||
|
||||
private function get($len){
|
||||
if($len <= 0){
|
||||
$this->offset = strlen($this->buffer) - 1;
|
||||
return "";
|
||||
}
|
||||
if($len === true){
|
||||
|
Loading…
x
Reference in New Issue
Block a user