busybox/coreutils
Ron Yorston 7105e4afdd printf: allow 0 as a flag and allow multiple flags
The '%' character in a format specification may be followed by
one or more flags from the list "+- #0".  BusyBox printf didn't
support the '0' flag or allow multiple flags to be provided.
As a result the formats '%0*d' and '%0 d' were considered to be
invalid.

The lack of support for '0' was pointed out by Andrew Snyder on the
musl mailing list:

   https://www.openwall.com/lists/musl/2021/12/14/2

function                                             old     new   delta
printf_main                                          860     891     +31
.rodata                                            99281   99282      +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 32/0)               Total: 32 bytes

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2021-12-17 21:13:26 +01:00
..
2021-06-14 20:47:20 +02:00
2021-06-14 20:47:20 +02:00
2021-06-22 10:24:06 +02:00
2021-08-15 23:05:30 +02:00
2021-06-16 17:45:28 +02:00
2021-06-14 20:47:20 +02:00
2021-06-17 13:39:46 +02:00
2021-06-13 01:08:48 +02:00
2021-04-14 15:15:45 +02:00
2021-06-02 04:01:10 +02:00
2021-06-14 20:47:20 +02:00
2021-10-08 21:02:56 +02:00
2021-06-25 00:23:29 +02:00
2021-06-24 13:47:49 +02:00
2021-04-14 15:15:45 +02:00
2021-09-07 22:51:42 +02:00
2021-06-17 00:36:13 +02:00
2021-04-14 15:15:45 +02:00
2021-06-24 23:37:06 +02:00
2021-04-14 15:15:45 +02:00
2021-06-15 10:00:18 +02:00