summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaCoroutine.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-03-09 01:54:13 +0000
committerEric Fiselier <eric@efcs.ca>2017-03-09 01:54:13 +0000
commit84a2dadceeb9013a5df995e81cbbebe47b1dd045 (patch)
treebfe6eaae7fc9a688726a55ca61225c6b27c6595e /clang/lib/Sema/SemaCoroutine.cpp
parent9a3fd8752388b7888e8be7072e3b5abf6f4cc9e8 (diff)
downloadbcm5719-llvm-84a2dadceeb9013a5df995e81cbbebe47b1dd045.tar.gz
bcm5719-llvm-84a2dadceeb9013a5df995e81cbbebe47b1dd045.zip
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
Diffstat (limited to 'clang/lib/Sema/SemaCoroutine.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud