[PATCH] stdio: Check the first character is a digit before calling read_int
Andreas Schwab
schwab@linux-m68k.org
Sat Aug 23 13:24:59 GMT 2025
On Aug 07 2025, panzhe0328 wrote:
> diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
> index fa41e1b242..62e478a058 100644
> --- a/stdio-common/vfprintf-internal.c
> +++ b/stdio-common/vfprintf-internal.c
> @@ -794,6 +794,13 @@ Xprintf_buffer (struct Xprintf_buffer *buf, const CHAR_T *format,
>
> /* Given width in format string. */
> LABEL (width):
> + if (!ISDIGIT (*f))
How can this be reached with !ISDIGIT?
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
More information about the Libc-alpha
mailing list