about summary refs log tree commit diff
path: root/string
Commit message (Collapse)AuthorAgeFilesLines
...
* Use glibc_likely instead __builtin_expect.Ondřej Bílka2014-02-104-4/+4
|
* Update copyright notices with scripts/update-copyrightsAllan McRae2014-01-01121-121/+121
|
* Define __CORRECT_ISO_CPP_STRING_H_PROTO correctly for Clang.Brooks Moses2013-12-232-4/+12
| | | | | | | | | | | | | | | | | | | | | In the string/string.h and string/strings.h headers, we have a couple of macros that "tell the caller that we provide correct C++ prototypes" according to the comment; they are used to determine whether to wrap some prototypes in "extern "C++"" (and provide multiple overloads of them, and some other magic) when __cplusplus is defined. The macros are set to check for sufficiently-recent GCC versions (4.4 and later), but this is not the right check for non-GCC compilers. In particular, these macros should also be set when using Clang -- if they are not set, then Clang will be unable to correctly diagnose a number of subtle bugs that will be errors in GCC compilations. As per discussion on earlier versions of this patch, rather than restrict the fix to Clang per se, we assume that all C++ compilers that claim to fully support C++98 are using a standard-conforming C++ standard library, which seems pretty reasonable. Clang has been providing an appropriate value of __cplusplus since May 2012.
* PowerPC: multiarch wordcopy for PowerPC64Adhemerval Zanella2013-12-131-16/+20
|
* PowerPC: multirach memcmp for PowerPC64Adhemerval Zanella2013-12-131-1/+5
|
* PowerPC: multiarch strchrnul for PowerPC32Adhemerval Zanella2013-12-061-1/+5
|
* PowerPC: multiarch rawmemchr for PowerPC32Adhemerval Zanella2013-12-061-1/+4
|
* PowerPC: multiarch memchr for PowerPC32Adhemerval Zanella2013-12-061-1/+5
|
* PowerPC: multiarch mempcpy for PowerPC32Adhemerval Zanella2013-12-061-1/+5
|
* Remove duplicate ifunc tests.Ondřej Bílka2013-11-2634-645/+1
|
* 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.