[PATCH v2 15/17] stdio-common: Reject integer prefixes in scanf [BZ #12701]
Maciej W. Rozycki
macro@redhat.com
Tue Mar 25 10:23:55 GMT 2025
On Mon, 24 Mar 2025, Florian Weimer wrote:
> > Reject invalid formatted scanf integer input data that is comprised of
> > a binary or hexadecimal prefix respectively, optionally preceded by a
> > sign, and with no actual digits following. Such data is a prefix of,
> > but not a matching input sequence and therefore it is meant to cause a
> > matching failure. Instead a matching success is recorded and the value
> > of zero currently returned with the prefix wholly consumed from input.
>
> Could you reword the commit message so that it's clearer what describes
> and the old behavior, and what describes the new behavior?
Updated in v3 consistently for 08/10, 09/10, and 10/10. Let me know if
you find the new descriptions better.
Maciej
More information about the Libc-alpha
mailing list