mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/JSON: Prevent more out of bounds memory accesses in json deserialization
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