[Bug string/29265] mbstowcs with NULL dst throws an incorrect warning (glibc == 2.35, gcc=12.0.1)
goldstein.w.n at gmail dot com
sourceware-bugzilla@sourceware.org
Tue Jun 21 02:44:58 GMT 2022
https://sourceware.org/bugzilla/show_bug.cgi?id=29265
--- Comment #2 from Noah Goldstein <goldstein.w.n at gmail dot com> ---
Sure(In reply to Siddhesh Poyarekar from comment #1)
> Agreed, the __attr_access ((__write_only__, 1, 3)) is incorrect for
> mbstowcs, the former requires the size argument to accurately reflect the
> object argument (i.e. 0 for a NULL pointer) whereas the mbstowcs
> implementation is expected to ignore the size argument if the first argument
> is NULL. Would you like to write a patch to fix this up?
Sure.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list