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