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

-fsanitize=nonnull-attribute in memcpy call

Change-Id: I0ed38aa54e1b403f015c27b27edb4710e935d961
üst eee25979
......@@ -1771,7 +1771,10 @@ sal_Size SvMemoryStream::GetData( void* pData, sal_Size nCount )
sal_Size nMaxCount = nEndOfData-nPos;
if( nCount > nMaxCount )
nCount = nMaxCount;
memcpy( pData, pBuf+nPos, (size_t)nCount );
if (nCount != 0)
{
memcpy( pData, pBuf+nPos, (size_t)nCount );
}
nPos += nCount;
return nCount;
}
......
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