Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update copyright dates with scripts/update-copyrights. | Joseph Myers | 2017-01-01 | 1 | -1/+1 |
| | |||||
* | Fix x86_64 memchr for large input sizes | Adhemerval Zanella | 2016-12-27 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current optimized memchr for x86_64 does for input arguments pointers module 64 in range of [49,63] if there is no searchr char in the rest of 64-byte block a pointer addition which might overflow: * sysdeps/x86_64/memchr.S 77 .p2align 4 78 L(unaligned_no_match): 79 add %rcx, %rdx Add (uintptr_t)s % 16 to n in %rdx. 80 sub $16, %rdx 81 jbe L(return_null) This patch fixes by adding a saturated math that sets a maximum pointer value if it overflows (UINTPTR_MAX). Checked on x86_64-linux-gnu and powerpc64-linux-gnu. [BZ# 19387] * sysdeps/x86_64/memchr.S (memchr): Avoid overflow in pointer addition. * string/test-memchr.c (do_test): Remove alignment limitation. (test_main): Add test that trigger BZ# 19387. | ||||
* | Update copyright dates with scripts/update-copyrights. | Joseph Myers | 2016-01-04 | 1 | -1/+1 |
| | |||||
* | Update copyright dates with scripts/update-copyrights. | Joseph Myers | 2015-01-02 | 1 | -1/+1 |
| | |||||
* | Update copyright notices with scripts/update-copyrights | Allan McRae | 2014-01-01 | 1 | -1/+1 |
| | |||||
* | Update copyright notices with scripts/update-copyrights. | Joseph Myers | 2013-01-02 | 1 | -1/+1 |
| | |||||
* | Replace FSF snail mail address with URLs. | Paul Eggert | 2012-02-09 | 1 | -3/+2 |
| | |||||
* | Improve 64 bit memchr, memrchr, rawmemchr with SSE2 | Liubov Dmitrieva | 2011-10-07 | 1 | -36/+280 |
| | |||||
* | Fix x86-64 memchr for large lengths. | Jakub Jelinek | 2009-06-16 | 1 | -3/+3 |
| | |||||
* | * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when | Ulrich Drepper | 2009-05-09 | 1 | -0/+2 |
| | | | | count is zero. | ||||
* | * sysdeps/x86_64/rawmemchr.S: New file. | Ulrich Drepper | 2009-04-10 | 1 | -2/+1 |
| | |||||
* | * string/stratcliff.c (do_test): Add memchr tests.. | Ulrich Drepper | 2009-04-07 | 1 | -4/+4 |
| | | | | | * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after first read quad word. | ||||
* | * sysdeps/x86_64/memchr.S: New file. | Ulrich Drepper | 2009-04-07 | 1 | -0/+67 |