diff options
author | Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> | 2020-07-21 18:01:39 -0300 |
---|---|---|
committer | Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> | 2020-07-21 18:01:39 -0300 |
commit | f6add169c89bbdd139a2eb845686127ead5799cd (patch) | |
tree | 7989d38726f4e5a25f555a7656abf07560581522 | |
parent | c79607a474439d50e9f0bcae59709817112900cc (diff) | |
download | glibc-f6add169c89bbdd139a2eb845686127ead5799cd.tar.gz glibc-f6add169c89bbdd139a2eb845686127ead5799cd.tar.xz glibc-f6add169c89bbdd139a2eb845686127ead5799cd.zip |
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>
-rw-r--r-- | sysdeps/powerpc/dl-procinfo.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |