From bf42bd0b6d67b264ea1bd7fd6f7deec5ba44bf0f Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Mon, 30 Jun 2025 17:04:31 +0300 Subject: [PATCH] fixed minedgs crash exploit --- src/utils/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Utils.php b/src/utils/Utils.php index 2f146cba..c4f4a1ee 100644 --- a/src/utils/Utils.php +++ b/src/utils/Utils.php @@ -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){