Kaydet (Commit) e0308504 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-fsanitize=nonnull-attribute in memcpy call

Change-Id: Ifbba19693ce0182a5d367b1621ade4780f152add
üst 9ec9ef47
...@@ -1908,7 +1908,7 @@ bool SvMemoryStream::ReAllocateMemory( long nDiff ) ...@@ -1908,7 +1908,7 @@ bool SvMemoryStream::ReAllocateMemory( long nDiff )
if( nEndOfData >= nNewSize ) if( nEndOfData >= nNewSize )
nEndOfData = nNewSize-1L; nEndOfData = nNewSize-1L;
} }
else else if (nSize != 0)
{ {
memcpy( pNewBuf, pBuf, (size_t)nSize ); memcpy( pNewBuf, pBuf, (size_t)nSize );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment