1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-01-26 21:41:34 +03:00

Note on xmlTextWriterWriteBase64 about no safety check

This commit is contained in:
Sandino Araico Sanchez
2025-12-20 18:18:24 -06:00
committed by Iván Chavero
parent e118d6376c
commit 9827e6e446

View File

@@ -1552,6 +1552,11 @@ xmlOutputBufferWriteBase64(xmlOutputBufferPtr out, int len,
* @param start the position within the data of the first byte to encode
* @param len the number of bytes to encode
* @returns the bytes written (may be 0 because of buffering) or -1 in case of error
*
* NOTE: No safety check is done on the length of data. This check is
* something that should happen outside of this call, the caller
* should know better the actual data and if it's reaching the end
* of the buffer or not.
*/
int
xmlTextWriterWriteBase64(xmlTextWriter *writer, const char *data,