public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Tulio Magno Quites Machado Filho <tuliom@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] powerpc: Fix POWER10 selection Date: Tue, 21 Jul 2020 21:03:09 +0000 (GMT) [thread overview] Message-ID: <20200721210309.B783F384A01C@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f6add169c89bbdd139a2eb845686127ead5799cd commit f6add169c89bbdd139a2eb845686127ead5799cd Author: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> Date: Tue Jul 21 18:01:39 2020 -0300 powerpc: Fix POWER10 selection Add a line that was missing from a previous commit. Without increasing str, the null-byte is not validated, and _dl_string_platform returns -1. Fixes: d2ba3677da7a ("powerpc: Add support for POWER10") Reviewed-by: Carlos O'Donell <carlos@redhat.com> Diff: --- sysdeps/powerpc/dl-procinfo.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sysdeps/powerpc/dl-procinfo.h b/sysdeps/powerpc/dl-procinfo.h index 497dc568e9..f07500619a 100644 --- a/sysdeps/powerpc/dl-procinfo.h +++ b/sysdeps/powerpc/dl-procinfo.h @@ -96,6 +96,7 @@ _dl_string_platform (const char *str) if (str[1] == '0') { ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER10; + str++; } else return -1;
reply other threads:[~2020-07-21 21:03 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=20200721210309.B783F384A01C@sourceware.org \ --to=tuliom@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).