[PATCH] iconv: iconv.c: fix null pointer dereference when outbuf is NULL

Anton Moryakov ant.v.moryakov@gmail.com
Wed Oct 29 15:00:36 GMT 2025


Thank you for the clarification, Andreas. I understand your point regarding
the current handling of the reset path.

Best regards,
Anton V. Moryakov

ср, 29 окт. 2025 г. в 17:58, Andreas Schwab <schwab@suse.de>:

> On Okt 29 2025, Anton Moryakov wrote:
>
> > The purpose of this patch is to fix an undefined behavior that occurs in
> > this exact scenario: when 'inbuf == NULL' (reset mode), 'outbuf != NULL',
> > but '*outbuf == NULL'.
>
> This case is already handled.
>
> --
> Andreas Schwab, SUSE Labs, schwab@suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20251029/bf57ad8d/attachment.htm>


More information about the Libc-alpha mailing list