fix RawMemoryWrapper serialisation to json, reported by b1rdG

This commit is contained in:
sehraf 2020-05-17 23:43:03 +02:00
parent d52d9c909b
commit f186422833
No known key found for this signature in database
GPG Key ID: DF09F6EAE356B2C6

View File

@ -599,7 +599,8 @@ void RsTypeSerializer::RawMemoryWrapper::serial_process(
RsBase64::encode(first, second, encodedValue, true, false);
ctx.mJson.SetString(
encodedValue.data(),
static_cast<rapidjson::SizeType>(encodedValue.length()) );
static_cast<rapidjson::SizeType>(encodedValue.length()),
ctx.mJson.GetAllocator());
break;
}
case RsGenericSerializer::FROM_JSON: