Ondřej Bílka
52bb65431f
Remove duplicate ifunc tests.
2013-11-26 12:58:28 +01:00
Samuel Thibault
43d5c02c72
Fix build on hurd
...
* string/strcoll_l.c: Include <sys/param.h> for MIN/MAX macros.
2013-11-10 11:22:32 +01:00
Alan Modra
0edf96c28f
string/tester memrchr test
...
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.
2013-10-04 10:42:15 +09:30
Alan Modra
e0f7a38046
string/test-memcpy error reporting
...
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.
2013-10-04 10:42:02 +09:30
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
Siddhesh Poyarekar
141f3a77fe
Fall back to non-cached sequence traversal and comparison on malloc fail
...
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.
2013-09-23 11:29:53 +05:30
Andreas Schwab
5bb43a4319
Make __ffs hidden
2013-09-20 21:25:31 +02:00
Adhemerval Zanella
4660856c6f
Add memrchr testcase
2013-09-05 09:52:08 -03:00
Andreas Schwab
45b8acccaf
Fix missing declaration of LC_CTYPE nonascii-case element
2013-08-27 12:21:12 +02:00
Siddhesh Poyarekar
1326ba1af2
Simplify strcoll implementation
...
Break up strcoll into simpler functions so that the logic is easier to
follow and maintain.
2013-08-20 08:40:06 +05:30
H.J. Lu
bb5bb87cd2
Add a test for BZ #15674
2013-06-26 15:23:08 -07:00
Adhemerval Zanella
85c2e6110c
Fix loop construction to functions calls
...
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.
2013-06-20 19:42:05 -05:00
Siddhesh Poyarekar
fec799f823
Remove performance-related bits from string tests
2013-06-11 15:08:13 +05:30
Joseph Myers
2e09a79ada
Avoid use of "register" as optimization hint.
2013-06-07 22:24:35 +00:00
Siddhesh Poyarekar
96df079a42
Add copyright header to test-strchrnul.c
2013-06-04 16:40:55 +05:30
Ryan S. Arnold
e054f49430
Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).
2013-05-16 11:32:54 -05:00
Ondrej Bilka
a07c5731d6
Remove duplicate __strcmp_cg
...
The __strcmp_cg code was duplicate of of __strcmp_gc. This patch unifies
these two cases into one.
2013-05-01 20:55:06 +02:00
Andreas Jaeger
f238fd190b
Sort Versions files
2013-02-17 16:34:04 +01:00
Joseph Myers
daaa7713e9
Remove bounded-pointers build system support.
2013-02-15 15:07:54 +00:00
Joseph Myers
2bdd4ca6b6
Remove miscellaneous bounded-pointers relics in C code.
2013-02-15 00:51:53 +00:00
Joseph Myers
e97ed6ddbe
Remove bp-sym.h and BP_SYM uses from C code.
2013-02-14 13:12:02 +00:00
Joseph Myers
70d9946a44
Remove __ptrvalue, __bounded and __unbounded.
2013-02-13 23:30:40 +00:00
Ondrej Bilka
170704c9ec
Call memcpy in generic mempcpy
2013-02-13 12:57:41 +01:00
Tom de Vries
a175b684e2
Fix typo, improve comment, remove superfluous #undefs, add missing #undef.
2013-02-12 00:00:49 +01:00
Tom de Vries
fe77fe6d51
Remove dead CFLAGS lines from string/Makefile
2013-02-11 23:10:26 +01:00
Roland McGrath
7f3e75f87a
Remove dead variable in generic strcpy.
2013-02-08 10:46:32 -08:00
Joseph Myers
b2c9eff43c
Remove CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH for C code.
2013-02-08 01:10:40 +00:00
Roland McGrath
f1d70dad53
Remove lots of inline keywords.
2013-02-07 14:44:18 -08:00
Joseph Myers
6a57d93130
Remove __GLIBC_HAVE_LONG_LONG.
2013-01-11 21:13:25 +00:00
H.J. Lu
740b3dbee8
Add --enable-hardcoded-path-in-tests configure option
2013-01-11 07:14:18 -08:00
Joseph Myers
fed0faa1c6
Remove __GNUC__ conditions for "long long" from string.h and wchar.h.
2013-01-10 16:44:59 +00:00
Joseph Myers
568035b787
Update copyright notices with scripts/update-copyrights.
2013-01-02 19:05:09 +00:00
2012-12-27 Bruno Haible
7fffbdfff7
BZ#14317: Optimze __xpg_strerror_r
...
[BZ #14317 ]
* string/xpg-strerror.c (__xpg_strerror_r): Optimize, call
strlen only if needed.
2012-12-27 22:37:39 +01:00
Maxim Kuvyrkov
19218757e6
Use memcpy in memmove when possible
2012-11-06 17:47:55 -08:00
Joseph Myers
03ac099f6b
Define and use $(run-built-tests).
2012-10-24 00:08:46 +00:00
H.J. Lu
69f07e5fd1
Add string IFUNC tests
2012-10-19 22:10:16 -07:00
H.J. Lu
38c7829650
Add a testcase for BZ #14716
2012-10-19 01:20:12 -07:00
Maxim Kuvyrkov
e9f3725206
Fix BZ #14716 : memmem crash
2012-10-15 17:22:41 -07:00
Andreas Schwab
ca38dc17d8
Avoid PLT references from __get_clockfreq on powerpc
2012-10-12 16:54:06 +02:00
H.J. Lu
11dd4af68c
Framework to test IFUNC implementations on target
2012-10-11 16:40:01 -07:00
H.J. Lu
9a387d1f78
Use IFUNC memmove/memset in x86-64 bcopy/bzero
...
Also add separate tests for bcopy and bzero.
2012-10-11 13:58:16 -07:00
Maxim Kuvyrkov
57e605ba50
Fix BZ #14602 : strstr and strcasestr return wrong result.
2012-10-08 20:52:53 -07:00
H.J. Lu
5d41d91a3e
Add a strstr test for page boundary
2012-10-06 16:04:56 -07:00
H.J. Lu
d7e0dab96d
Add a testase for BZ #14602
2012-10-05 13:32:27 -07:00
H.J. Lu
03759f47db
Test strcasestr/strchr/strstr under all implementations
2012-10-05 13:32:07 -07:00
Maxim Kuvyrkov
bcca089526
Micro-optimize critical path of strstr, strcase and memmem.
2012-08-21 18:07:47 -07:00
Maxim Kuvyrkov
99677e5755
Use pointers for traversing arrays in strstr, strcasestr and memmem.
2012-08-21 18:07:47 -07:00
Maxim Kuvyrkov
400726deef
Detect EOL on-the-fly in strstr, strcasestr and memmem.
2012-08-21 18:07:47 -07:00
Maxim Kuvyrkov
20a71f2c8a
Optimize first-character loop of strstr, strcasestr and memmem.
2012-08-21 18:07:47 -07:00
Liubov Dmitrieva
b3f479a85a
Fix segmentation fault in strncasecmp for i686
...
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.
2012-08-15 21:06:55 +02:00