hanchenye-llvm-project/libcxx
Eric Fiselier 84a2dadcee Disable unsigned integer sanitizer for basic_string::replace(). Patch from tomcherry@google.com
basic_string::replace() has the below line

__sz += __n2 - __n1;

which fails overflow checks if __n1 > __n2, as the negative result
from the subtraction then overflows the original __sz when added to
it.

This behavior is valid as unsigned integer overflow is defined to wrap
around the maximum value and that produces the correct final value for
__sz.  Therefore, we disable this check on this function.

llvm-svn: 297355
2017-03-09 01:54:13 +00:00
..
benchmarks improve performance of string::find 2016-12-30 18:01:36 +00:00
cmake Recommit "Split exception.cpp and new.cpp implementation into different files for different runtimes." 2017-02-10 08:57:35 +00:00
docs [libc++] Make _LIBCPP_TYPE_VIS export members 2017-03-02 03:22:18 +00:00
include Disable unsigned integer sanitizer for basic_string::replace(). Patch from tomcherry@google.com 2017-03-09 01:54:13 +00:00
lib Remove the buildit and testit scripts; they haven't been supported in years 2017-03-03 22:47:45 +00:00
src Fix PR32183 - Wrap GCC exception implementation in missing namespace std 2017-03-08 20:06:01 +00:00
test Implement LWG 2787 - [file_status.cons] is inconsistent 2017-03-06 21:02:06 +00:00
utils Fix nonsense comment 2017-03-04 12:28:12 +00:00
www Mark LWG 2806 as complete. Libc++ speculatively shiped this change in 4.0 2017-03-06 21:09:02 +00:00
.arcconfig Upgrade arcconfig to use https 2016-07-18 02:02:49 +00:00
.clang-format Tweak .clang-format configuration. 2017-01-14 05:43:02 +00:00
.gitignore Implement N4606 optional 2016-10-12 07:46:20 +00:00
CMakeLists.txt Work around GCC linking errors within libc++abi due to missing new/delete definitions 2017-03-02 21:55:03 +00:00
CREDITS.TXT Updated email address in `CREDITS.txt`. 2017-03-06 20:46:55 +00:00
LICENSE.TXT Update year to 2017 2017-01-03 11:20:43 +00:00
NOTES.TXT Update doc and various cleanup 2016-12-23 20:00:13 +00:00
TODO.TXT Add list of filesystem NB comments to TODO.TXT so they can be tracked separately 2017-03-06 21:23:36 +00:00