Blame SOURCES/glibc-rh587360.patch

b9ba6d
Index: glibc-2.11-382-g1cdb215/posix/regexec.c
b9ba6d
===================================================================
b9ba6d
--- glibc-2.11-382-g1cdb215.orig/posix/regexec.c
b9ba6d
+++ glibc-2.11-382-g1cdb215/posix/regexec.c
b9ba6d
@@ -4031,7 +4031,7 @@ find_collation_sequence_value (const uns
b9ba6d
 	  /* Skip the collation sequence value.  */
b9ba6d
 	  idx += sizeof (uint32_t);
b9ba6d
 	  /* Skip the wide char sequence of the collating element.  */
b9ba6d
-	  idx = idx + sizeof (uint32_t) * (extra[idx] + 1);
b9ba6d
+	  idx = idx + sizeof (uint32_t) * (*(int32_t *) (extra + idx) + 1);
b9ba6d
 	  /* If we found the entry, return the sequence value.  */
b9ba6d
 	  if (found)
b9ba6d
 	    return *(uint32_t *) (extra + idx);