e354a5
commit f6add169c89bbdd139a2eb845686127ead5799cd
e354a5
Author: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
e354a5
Date:   Tue Jul 21 18:01:39 2020 -0300
e354a5
e354a5
    powerpc: Fix POWER10 selection
e354a5
    
e354a5
    Add a line that was missing from a previous commit.
e354a5
    Without increasing str, the null-byte is not validated, and
e354a5
    _dl_string_platform returns -1.
e354a5
    
e354a5
    Fixes: d2ba3677da7a ("powerpc: Add support for POWER10")
e354a5
    
e354a5
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>
e354a5
e354a5
diff --git a/sysdeps/powerpc/dl-procinfo.h b/sysdeps/powerpc/dl-procinfo.h
e354a5
index 3558d6a83ca2a988..3593e9661b06dcff 100644
e354a5
--- a/sysdeps/powerpc/dl-procinfo.h
e354a5
+++ b/sysdeps/powerpc/dl-procinfo.h
e354a5
@@ -96,6 +96,7 @@ _dl_string_platform (const char *str)
e354a5
 	  if (str[1] == '0')
e354a5
 	    {
e354a5
 	      ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER10;
e354a5
+	      str++;
e354a5
 	    }
e354a5
 	  else
e354a5
 	    return -1;