Displaying 1 result from an estimated 1 matches for "d87237".
Did you mean:
d87233
2020 Sep 07
2
[ADT] Adding instrumentation for ASAN to SmallVector
Dear list,
I recently tried to add instrumentation to SmallVector for using
Address sanitizer to detect cases where references used after they are
invalidated. This basic implementation for this is here -
https://reviews.llvm.org/D87237
However, in adding/testing this, I did uncover some questionable code.
Firstly `SmallString<unsigned>::c_str()` and
`Twine::toNullTerminatedStringRef(SmallVectorImpl<char>&)` both use
bytes outside the range of the SmallVectors storage. This isn't
inherently bad.
Secondly calli...