From: Florian Weimer Date: Mon, 2 Feb 2026 14:20:57 +0000 (+0100) Subject: manual: Document that iconv buffers may not overlap X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caab55393aa686ba78bb1cb5803a447bf53b5290;p=thirdparty%2Fglibc.git manual: Document that iconv buffers may not overlap As discussed here: Re: [bug-gnu-libiconv] iconv and overlapping input/output buffers Reviewed-by: Collin Funk --- diff --git a/manual/charset.texi b/manual/charset.texi index 3aaa62d088..b10d0b33c7 100644 --- a/manual/charset.texi +++ b/manual/charset.texi @@ -1801,6 +1801,9 @@ pointer again is of type @code{char} and the length is measured in bytes. If @var{outbuf} or @code{*@var{outbuf}} is a null pointer, the conversion is performed but no output is available. +The input and output buffers may not have any bytes in common. If they +overlap, the behavior is undefined. + If @var{inbuf} is a null pointer, the @code{iconv} function performs the necessary action to put the state of the conversion into the initial state. This is obviously a no-op for non-stateful encodings, but if the