]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
powerpc: Fix POWER10 selection
authorTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Tue, 21 Jul 2020 21:01:39 +0000 (18:01 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Tue, 21 Jul 2020 21:01:39 +0000 (18:01 -0300)
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>
sysdeps/powerpc/dl-procinfo.h

index 497dc568e9fe51ef7607149fb05110dd3c0f4b06..f07500619a01c24dbb535efc26750865336db10b 100644 (file)
@@ -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;