Core/JSON: Prevent more out of bounds memory accesses in json deserialization

This commit is contained in:
Shauren
2024-12-26 00:02:13 +01:00
parent 3997b857c2
commit 661bd1a7f4

View File

@@ -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;