]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/patches/glibc/glibc-rh587360.patch
toolchain: glibc: Cross build package and import patches from RHEL6.
[people/teissler/ipfire-2.x.git] / src / patches / glibc / glibc-rh587360.patch
diff --git a/src/patches/glibc/glibc-rh587360.patch b/src/patches/glibc/glibc-rh587360.patch
new file mode 100644 (file)
index 0000000..07b62e6
--- /dev/null
@@ -0,0 +1,13 @@
+Index: glibc-2.11-382-g1cdb215/posix/regexec.c
+===================================================================
+--- glibc-2.11-382-g1cdb215.orig/posix/regexec.c
++++ glibc-2.11-382-g1cdb215/posix/regexec.c
+@@ -4031,7 +4031,7 @@ find_collation_sequence_value (const uns
+         /* Skip the collation sequence value.  */
+         idx += sizeof (uint32_t);
+         /* Skip the wide char sequence of the collating element.  */
+-        idx = idx + sizeof (uint32_t) * (extra[idx] + 1);
++        idx = idx + sizeof (uint32_t) * (*(int32_t *) (extra + idx) + 1);
+         /* If we found the entry, return the sequence value.  */
+         if (found)
+           return *(uint32_t *) (extra + idx);