# HG changeset patch # User František Kučera # Date 1650716544 -7200 # Node ID fa4a69895ea50f6ea82932aac90c6c9be4ae8d72 # Parent 9964a8ea10b5d9286c5216cf6ec778cb13b1f2a5 comment on null bytes 0x00 in XML diff -r 9964a8ea10b5 -r fa4a69895ea5 src/XMLCommand.h --- a/src/XMLCommand.h Sat Dec 04 21:14:50 2021 +0100 +++ b/src/XMLCommand.h Sat Apr 23 14:22:24 2022 +0200 @@ -98,6 +98,9 @@ } void characters(const string_t chars) { + // There should be no null bytes in XML, 0x00 is invalid here. + // No 0x00 should come here through the XML library, + // but if any comes, the value is trimmed at the first null byte. currentValue << chars.c_str(); }