public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Andreas Schwab <schwab@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] Don't use unsupported format string in ld.so (bug 29427) Date: Tue, 2 Aug 2022 08:25:37 +0000 (GMT) [thread overview] Message-ID: <20220802082537.7CB123858D37@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=521d54056242aae41ad362bd95ab17c50138337a commit 521d54056242aae41ad362bd95ab17c50138337a Author: Andreas Schwab <schwab@suse.de> Date: Mon Aug 1 16:30:15 2022 +0200 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. Diff: --- elf/dl-diagnostics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }
reply other threads:[~2022-08-02 8:25 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220802082537.7CB123858D37@sourceware.org \ --to=schwab@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).