summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-03 10:51:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-03 10:51:32 +0200
commite0308504b20e0ce8f3964e34104e7d700465980b (patch)
treebf8abaf86484c6be2c7887ba44c97e2cd7962b95 /tools
parent9ec9ef471d23ae40a955b3b105d397544b938915 (diff)
-fsanitize=nonnull-attribute in memcpy call
Change-Id: Ifbba19693ce0182a5d367b1621ade4780f152add
Diffstat (limited to 'tools')
-rw-r--r--tools/source/stream/stream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index b96da82b326a..79c3717b895c 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -1908,7 +1908,7 @@ bool SvMemoryStream::ReAllocateMemory( long nDiff )
if( nEndOfData >= nNewSize )
nEndOfData = nNewSize-1L;
}
- else
+ else if (nSize != 0)
{
memcpy( pNewBuf, pBuf, (size_t)nSize );
}