mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
fixed minedgs crash exploit
This commit is contained in:
parent
de44bd6a0d
commit
bf42bd0b6d
1 changed files with 1 additions and 1 deletions
|
|
@ -437,7 +437,7 @@ class Utils{
|
|||
}
|
||||
|
||||
public static function readTriad($str){
|
||||
return strlen($str) < 3 ? false : @unpack("N", "\x00$str")[1];
|
||||
return strlen($str) < 3 ? 0 : @unpack("N", "\x00$str")[1]; //make sure this returns 0 on failure instead of false or else raknet parser will fall into infinite loop if start is false
|
||||
}
|
||||
|
||||
public static function writeDataArray($data){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue