Guard against the case where the Write method is called with
authorJason Molenda <jmolenda@apple.com>
Thu, 30 Apr 2015 23:42:56 +0000 (23:42 +0000)
committerJason Molenda <jmolenda@apple.com>
Thu, 30 Apr 2015 23:42:56 +0000 (23:42 +0000)
commitebd01b0ae68f7eff7e671f5b2df921e59e73e9a9
tree1b5195097d0f04b7394fccce8bd21e93caaf8fa0
parentd0014bf6f815ac66091a00cedd78f03a529879c9
Guard against the case where the Write method is called with
an argument pointing into the middle of m_buffer and then
Write() calls GrowBuffer() to resize m_buffer, leaving
the content argument pointing into deallocated memory.

Patch by Kate Stone.
<rdar://problem/20756722>

llvm-svn: 236286
lldb/source/Core/FastDemangle.cpp