about summary refs log tree commit diff
path: root/string
Commit message (Collapse)AuthorAgeFilesLines
* Fix build on hurdSamuel Thibault2013-11-101-0/+1
| | | | * string/strcoll_l.c: Include <sys/param.h> for MIN/MAX macros.
* string/tester memrchr testAlan Modra2013-10-041-3/+3
| | | | | | | | | http://sourceware.org/ml/libc-alpha/2013-08/msg00095.html I found this useful at one stage when I was seeing a huge number of memrchr failures all of test number 10. * string/tester.c (test_memrchr): Increment reported test cycle.
* string/test-memcpy error reportingAlan Modra2013-10-041-2/+2
| | | | | | | | | | http://sourceware.org/ml/libc-alpha/2013-08/msg00094.html Using plain %s here runs the risk of segfaulting when displaying the string. src and dst aren't zero terminated strings. * string/test-memcpy.c (do_one_test): When reporting errors, print string address and don't overrun end of string.
* Check for integer overflow in cache size computation in strcollSiddhesh Poyarekar2013-09-233-1/+72
| | | | | | | | | | | 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.
* Fall back to non-cached sequence traversal and comparison on malloc failSiddhesh Poyarekar2013-09-231-31/+234
| | | | | | | | strcoll currently falls back to alloca if malloc fails, resulting in a possible stack overflow. This patch implements sequence traversal and comparison without caching indices and rules. Fixes CVE-2012-4424.
* Make __ffs hiddenAndreas Schwab2013-09-201-0/+1
|
* Add memrchr testcaseAdhemerval Zanella2013-09-053-1/+190
|
* Fix missing declaration of LC_CTYPE nonascii-case elementAndreas Schwab2013-08-273-8/+48
|
* Simplify strcoll implementationSiddhesh Poyarekar2013-08-201-406/+295
| | | | | Break up strcoll into simpler functions so that the logic is easier to follow and maintain.
* Add a test for BZ #15674H.J. Lu2013-06-261-0/+24
|
* Fix loop construction to functions callsAdhemerval Zanella2013-06-204-0/+4
| | | | | | Check wheter the compiler has the option -fno-tree-loop-distribute-patterns to inhibit loop transformation to library calls and uses it on memset and memmove default implementation to avoid recursive calls.
* Remove performance-related bits from string testsSiddhesh Poyarekar2013-06-1125-620/+0
|
* Avoid use of "register" as optimization hint.Joseph Myers2013-06-075-22/+22
|
* Add copyright header to test-strchrnul.cSiddhesh Poyarekar2013-06-041-0/+19
|
* Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).Ryan S. Arnold2013-05-161-1/+1
|
* Remove duplicate __strcmp_cgOndrej Bilka2013-05-011-24/+1
| | | | | The __strcmp_cg code was duplicate of of __strcmp_gc. This patch unifies these two cases into one.
* Sort Versions filesAndreas Jaeger2013-02-171-2/+2
|
* Remove bounded-pointers build system support.Joseph Myers2013-02-151-4/+0
|
* Remove miscellaneous bounded-pointers relics in C code.Joseph Myers2013-02-151-1/+1
|
* Remove bp-sym.h and BP_SYM uses from C code.Joseph Myers2013-02-141-6/+1
|
* Remove __ptrvalue, __bounded and __unbounded.Joseph Myers2013-02-131-1/+1
|
* Call memcpy in generic mempcpyOndrej Bilka2013-02-131-36/+2
|
* Fix typo, improve comment, remove superfluous #undefs, add missing #undef.Tom de Vries2013-02-121-5/+7
|
* Remove dead CFLAGS lines from string/MakefileTom de Vries2013-02-111-2/+0
|
* Remove dead variable in generic strcpy.Roland McGrath2013-02-081-3/+0
|
* Remove CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH for C code.Joseph Myers2013-02-081-5/+2
|
* Remove lots of inline keywords.Roland McGrath2013-02-071-3/+0
|
* Remove __GLIBC_HAVE_LONG_LONG.Joseph Myers2013-01-112-15/+9
|
* Add --enable-hardcoded-path-in-tests configure optionH.J. Lu2013-01-111-1/+1
|
* Remove __GNUC__ conditions for "long long" from string.h and wchar.h.Joseph Myers2013-01-101-2/+0
|
* Update copyright notices with scripts/update-copyrights.Joseph Myers2013-01-02149-158/+149
|
* BZ#14317: Optimze __xpg_strerror_r2012-12-27 Bruno Haible2012-12-271-9/+15
| | | | | | [BZ #14317] * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen only if needed.
* Use memcpy in memmove when possibleMaxim Kuvyrkov2012-11-061-1/+5
|
* Define and use $(run-built-tests).Joseph Myers2012-10-241-1/+1
|
* Add string IFUNC testsH.J. Lu2012-10-1960-23/+709
|
* Add a testcase for BZ #14716H.J. Lu2012-10-191-3/+32
|
* Fix BZ #14716: memmem crashMaxim Kuvyrkov2012-10-151-2/+2
|
* Avoid PLT references from __get_clockfreq on powerpcAndreas Schwab2012-10-121-1/+2
|
* Framework to test IFUNC implementations on targetH.J. Lu2012-10-111-1/+56
|
* Use IFUNC memmove/memset in x86-64 bcopy/bzeroH.J. Lu2012-10-115-15/+124
| | | | Also add separate tests for bcopy and bzero.
* Fix BZ #14602: strstr and strcasestr return wrong result.Maxim Kuvyrkov2012-10-083-18/+27
|
* Add a strstr test for page boundaryH.J. Lu2012-10-061-1/+6
|
* Add a testase for BZ #14602H.J. Lu2012-10-051-0/+12
|
* Test strcasestr/strchr/strstr under all implementationsH.J. Lu2012-10-057-89/+77
|
* Micro-optimize critical path of strstr, strcase and memmem.Maxim Kuvyrkov2012-08-213-1/+12
|
* Use pointers for traversing arrays in strstr, strcasestr and memmem.Maxim Kuvyrkov2012-08-212-18/+49
|
* Detect EOL on-the-fly in strstr, strcasestr and memmem.Maxim Kuvyrkov2012-08-215-13/+91
|
* Optimize first-character loop of strstr, strcasestr and memmem.Maxim Kuvyrkov2012-08-211-1/+14
|
* Fix segmentation fault in strncasecmp for i686Liubov Dmitrieva2012-08-151-4/+14
| | | | | | | | | | | | 2012-08-15 Liubov Dmitrieva <liubov.dmitrieva@gmail.com> [BZ #14195] * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix segmentation fault for a case of two empty input strings. * string/test-strncasecmp.c (check1): Renamed to... (bz12205): ...this. (bz14195): Add new testcase for two empty input strings and N > 0. (test_main): Call new testcase, adapt for renamed function.
* Remove local redefinition of MAX macro.Roland McGrath2012-08-151-5/+2
|