Fixed Serializer::WriteStr.
All checks were successful
Build & Release / Linux-AMD64-Build (push) Successful in 1m24s
Build & Release / Windows-AMD64-Build (push) Successful in 8h1m32s
Build & Release / Linux-AARCH64-Build (push) Successful in 3m22s

This commit is contained in:
Arron David Nelson 2024-02-17 00:57:33 -08:00
parent 1fd9c63cfe
commit b4674bd94c

View File

@ -405,7 +405,9 @@ namespace ehs
inSize++; inSize++;
N bSize = sizeof(T) * inSize; N bSize = sizeof(T) * inSize;
N bSizeN = sizeof(T) * (inSize + 1); N bSizeN = bSize;
if (!sizeKnown)
bSizeN += sizeof(T);
if (bSizeN > size - offset) if (bSizeN > size - offset)
{ {