mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
Core/JSON: Prevent more out of bounds memory accesses in json deserialization
(cherry picked from commit 661bd1a7f4)
This commit is contained in:
@@ -241,7 +241,7 @@ uint32 Battlenet::Session::HandleLogon(authentication::v1::LogonRequest const* l
|
||||
return 0min;
|
||||
|
||||
rapidjson::Document doc;
|
||||
doc.Parse(logonRequest->device_id());
|
||||
doc.Parse(logonRequest->device_id().c_str(), logonRequest->device_id().length());
|
||||
if (doc.HasParseError())
|
||||
return 0min;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user