Closed MiguelCompany closed 1 week ago
Should be also make the changes when serializing a wstring
?
Should be also make the changes when serializing a
wstring
?
Not sure, the standard says that for strings, the terminating null character is not transmitted. Not sure if that implies that the string can have null characters in the middle. I'd say we can handle that on a different PR
@Mergifyio backport 2.1.x
backport 2.1.x
Description
This addresses #69 and #214 by explicitly failing to serialize a string that contains null characters, instead of silently discard the last part of the string.
@Mergifyio backport 2.1.x 1.0.x Note: I'm not sure whether we should backport this to 1.x.
Contributor Checklist
versions.md
file (if applicable).Reviewer Checklist