glibc/string
Siddhesh Poyarekar 303e567a80 Check for integer overflow in cache size computation in strcoll
strcoll is implemented using a cache for indices and weights of
collation sequences in the strings so that subsequent passes do not
have to search through collation data again.  For very large string
inputs, the cache size computation could overflow.  In such a case,
use the fallback function that does not cache indices and weights of
collation sequences.

Fixes CVE-2012-4412.
2013-09-23 11:29:53 +05:30
..
bits Avoid use of "register" as optimization hint. 2013-06-07 22:24:35 +00:00
_strerror.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
argz-addsep.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
argz-append.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
argz-count.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
argz-create.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
argz-ctsep.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
argz-delete.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
argz-extract.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
argz-insert.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
argz-next.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
argz-replace.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
argz-stringify.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
argz.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
basename.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
bcopy.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
bug-envz1.c
bug-strcoll1.c
bug-strncat1.c
bug-strpbrk1.c
bug-strspn1.c
bug-strtok1.c
byteswap.h Remove __GLIBC_HAVE_LONG_LONG. 2013-01-11 21:13:25 +00:00
bzero.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
Depend
endian.h Remove __GLIBC_HAVE_LONG_LONG. 2013-01-11 21:13:25 +00:00
envz.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
envz.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ffs.c Make __ffs hidden 2013-09-20 21:25:31 +02:00
ffsll.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
inl-tester.c
Makefile Check for integer overflow in cache size computation in strcoll 2013-09-23 11:29:53 +05:30
memccpy.c Avoid use of "register" as optimization hint. 2013-06-07 22:24:35 +00:00
memchr.c Remove bp-sym.h and BP_SYM uses from C code. 2013-02-14 13:12:02 +00:00
memcmp.c Remove lots of inline keywords. 2013-02-07 14:44:18 -08:00
memcpy.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
memfrob.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
memmem.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
memmove.c Fix loop construction to functions calls 2013-06-20 19:42:05 -05:00
memory.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mempcpy.c Call memcpy in generic mempcpy 2013-02-13 12:57:41 +01:00
memrchr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
memset.c Fix loop construction to functions calls 2013-06-20 19:42:05 -05:00
noinl-tester.c
rawmemchr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
stpcpy.c Avoid use of "register" as optimization hint. 2013-06-07 22:24:35 +00:00
stpncpy.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
str-two-way.h Fix typo, improve comment, remove superfluous #undefs, add missing #undef. 2013-02-12 00:00:49 +01:00
stratcliff.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strcasecmp_l.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strcasecmp.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strcasestr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strcat.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strchr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strchrnul.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strcmp.c Avoid use of "register" as optimization hint. 2013-06-07 22:24:35 +00:00
strcoll_l.c Check for integer overflow in cache size computation in strcoll 2013-09-23 11:29:53 +05:30
strcoll.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strcpy.c Remove __ptrvalue, __bounded and __unbounded. 2013-02-13 23:30:40 +00:00
strcspn.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strdup.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strerror_l.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strerror.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strfry.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
string-inlines.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
string.h Remove __GNUC__ conditions for "long long" from string.h and wchar.h. 2013-01-10 16:44:59 +00:00
strings.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strlen.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strncase_l.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strncase.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strncat.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strncmp.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strncpy.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strndup.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strnlen.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strpbrk.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strrchr.c Avoid use of "register" as optimization hint. 2013-06-07 22:24:35 +00:00
strsep.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strsignal.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strspn.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strstr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strtok_r.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strtok.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strverscmp.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strxfrm_l.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
strxfrm.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
swab.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-bcopy-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-bcopy.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-bzero-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-bzero.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-ffs.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-memccpy-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-memccpy.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-memchr-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-memchr.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-memcmp-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-memcmp.c Add a test for BZ #15674 2013-06-26 15:23:08 -07:00
test-memcpy-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-memcpy.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-memmem-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-memmem.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-memmove-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-memmove.c Fix loop construction to functions calls 2013-06-20 19:42:05 -05:00
test-mempcpy-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-mempcpy.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-memrchr-ifunc.c Add memrchr testcase 2013-09-05 09:52:08 -03:00
test-memrchr.c Add memrchr testcase 2013-09-05 09:52:08 -03:00
test-memset-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-memset.c Fix loop construction to functions calls 2013-06-20 19:42:05 -05:00
test-rawmemchr-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-rawmemchr.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-stpcpy-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-stpcpy.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-stpncpy-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-stpncpy.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strcasecmp-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strcasecmp.c Fix missing declaration of LC_CTYPE nonascii-case element 2013-08-27 12:21:12 +02:00
test-strcasestr-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strcasestr.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-strcat-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strcat.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-strchr-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strchr.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-strchrnul-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strchrnul.c Add copyright header to test-strchrnul.c 2013-06-04 16:40:55 +05:30
test-strcmp-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strcmp.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-strcpy-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strcpy.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-strcspn-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strcspn.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-string.h Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-strlen-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strlen.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-strncasecmp-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strncasecmp.c Fix missing declaration of LC_CTYPE nonascii-case element 2013-08-27 12:21:12 +02:00
test-strncat-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strncat.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-strncmp-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strncmp.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-strncpy-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strncpy.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-strnlen-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strnlen.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-strpbrk-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strpbrk.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-strrchr-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strrchr.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-strspn-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strspn.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
test-strstr-ifunc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-strstr.c Remove performance-related bits from string tests 2013-06-11 15:08:13 +05:30
testcopy.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tester.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tst-bswap.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tst-endian.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
tst-inlcall.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tst-strcoll-overflow.c Check for integer overflow in cache size computation in strcoll 2013-09-23 11:29:53 +05:30
tst-strfry.c
tst-strlen.c Add optimized x86-64 implementation of strnlen. 2010-07-26 08:37:08 -07:00
tst-strtok_r.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tst-strtok.c
tst-strxfrm2.c
tst-strxfrm.c
tst-svc2.c [BZ #9893] 2009-03-14 23:57:33 +00:00
tst-svc.c
tst-svc.expect * string/strverscmp.c (__strverscmp): Fix last cleanups. 2009-04-07 06:51:59 +00:00
tst-svc.input * string/strverscmp.c (__strverscmp): Fix last cleanups. 2009-04-07 06:51:59 +00:00
Versions Sort Versions files 2013-02-17 16:34:04 +01:00
wordcopy.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
xpg-strerror.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00