diff options
| author | Eric Fiselier <eric@efcs.ca> | 2017-03-09 01:54:13 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2017-03-09 01:54:13 +0000 |
| commit | 84a2dadceeb9013a5df995e81cbbebe47b1dd045 (patch) | |
| tree | bfe6eaae7fc9a688726a55ca61225c6b27c6595e /lldb/source/Target/ModuleCache.cpp | |
| parent | 9a3fd8752388b7888e8be7072e3b5abf6f4cc9e8 (diff) | |
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 'lldb/source/Target/ModuleCache.cpp')
0 files changed, 0 insertions, 0 deletions
