diff options
author | Andreas Schwab <schwab@suse.de> | 2014-09-16 11:17:04 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2019-02-04 15:45:02 +0100 |
commit | 65f7767a914144ae303f7b9ae81865061793dcb9 (patch) | |
tree | 9af5f491383e603957b206d18336972572cde7c1 /sysdeps/s390 | |
parent | 3f635fb43389b54f682fc9ed2acc0b2aaf4a923d (diff) | |
download | glibc-65f7767a914144ae303f7b9ae81865061793dcb9.zip glibc-65f7767a914144ae303f7b9ae81865061793dcb9.tar.gz glibc-65f7767a914144ae303f7b9ae81865061793dcb9.tar.bz2 |
Fix handling of collating elements in fnmatch (bug 17396, bug 16976)
This fixes the same bug in fnmatch that was fixed by commit 7e2f0d2d77 for
regexp matching. As a side effect it also removes the use of an unbound
VLA.
Diffstat (limited to 'sysdeps/s390')
-rw-r--r-- | sysdeps/s390/wmemcmp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sysdeps/s390/wmemcmp.c b/sysdeps/s390/wmemcmp.c index ec0b402..2f61955 100644 --- a/sysdeps/s390/wmemcmp.c +++ b/sysdeps/s390/wmemcmp.c @@ -23,16 +23,17 @@ # include <ifunc-resolve.h> # if HAVE_WMEMCMP_C -extern __typeof (wmemcmp) WMEMCMP_C attribute_hidden; +extern __typeof (__wmemcmp) WMEMCMP_C attribute_hidden; # endif # if HAVE_WMEMCMP_Z13 -extern __typeof (wmemcmp) WMEMCMP_Z13 attribute_hidden; +extern __typeof (__wmemcmp) WMEMCMP_Z13 attribute_hidden; # endif -s390_libc_ifunc_expr (wmemcmp, wmemcmp, +s390_libc_ifunc_expr (__wmemcmp, __wmemcmp, (HAVE_WMEMCMP_Z13 && (hwcap & HWCAP_S390_VX)) ? WMEMCMP_Z13 : WMEMCMP_DEFAULT ) +weak_alias (__wmemcmp, wmemcmp) #endif |