[PATCH] powerpc: Fix POWER10 selection
Paul E Murphy
murphyp@linux.ibm.com
Thu Jul 16 13:54:41 GMT 2020
On 7/15/20 6:04 PM, Tulio Magno Quites Machado Filho via Libc-alpha wrote:
> 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")
> ---
> 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;
>
LGTM.
More information about the Libc-alpha
mailing list