diff options
author | Andreas Schwab <schwab@suse.de> | 2022-08-01 16:30:15 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2022-08-02 10:24:21 +0200 |
commit | 521d54056242aae41ad362bd95ab17c50138337a (patch) | |
tree | 8c918107084af0bd02988981fb1443bc393d64a6 /elf | |
parent | htl: Let pthread_self and cancellability called early (diff) | |
download | glibc-521d54056242aae41ad362bd95ab17c50138337a.tar.gz glibc-521d54056242aae41ad362bd95ab17c50138337a.tar.bz2 glibc-521d54056242aae41ad362bd95ab17c50138337a.zip |
Don't use unsupported format string in ld.so (bug 29427)
The dynamic loader does not support printf format strings that contain a
literal field width or precision, they have to be specified indirectly.
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-diagnostics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-diagnostics.c b/elf/dl-diagnostics.c index dd3871b1e0..269c428c93 100644 --- a/elf/dl-diagnostics.c +++ b/elf/dl-diagnostics.c @@ -108,7 +108,7 @@ _dl_diagnostics_print_labeled_value (const char *label, uint64_t value) if (high == 0) _dl_printf ("%s=0x%x\n", label, low); else - _dl_printf ("%s=0x%x%08x\n", label, high, low); + _dl_printf ("%s=0x%x%0*x\n", label, high, 8, low); } } |