From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1827) id B783F384A01C; Tue, 21 Jul 2020 21:03:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B783F384A01C Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Tulio Magno Quites Machado Filho To: glibc-cvs@sourceware.org Subject: [glibc] powerpc: Fix POWER10 selection X-Act-Checkin: glibc X-Git-Author: Tulio Magno Quites Machado Filho X-Git-Refname: refs/heads/master X-Git-Oldrev: c79607a474439d50e9f0bcae59709817112900cc X-Git-Newrev: f6add169c89bbdd139a2eb845686127ead5799cd Message-Id: <20200721210309.B783F384A01C@sourceware.org> Date: Tue, 21 Jul 2020 21:03:09 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2020 21:03:09 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f6add169c89bbdd139a2eb845686127ead5799cd commit f6add169c89bbdd139a2eb845686127ead5799cd Author: Tulio Magno Quites Machado Filho 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 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;