As discussed here:
Re: [bug-gnu-libiconv] iconv and overlapping input/output buffers
<https://lists.gnu.org/archive/html/bug-gnu-libiconv/2026-01/msg00002.html>
Reviewed-by: Collin Funk <collin.funk1@gmail.com>
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