Kaydet (Commit) 382b8baf authored tarafından Markus Mohrhard's avatar Markus Mohrhard

we still need to pass the wrong number of read bytes

Somehow we rely in some cases on the invalid number of read bytes.

Change-Id: I07e31c231cd96878da098f72cf3279da939da9c7
üst f23e5407
......@@ -824,7 +824,7 @@ sal_Size XclImpStream::CopyToStream( SvStream& rOutStrm, sal_Size nBytes )
nRet += Read( pnBuffer, nReadSize );
// writing more bytes than read results in invalid memory access
SAL_WARN_IF(nRet != nReadSize, "sc", "read less bytes than requested");
rOutStrm.Write( pnBuffer, nRet );
rOutStrm.Write( pnBuffer, nReadSize );
nBytesLeft -= nReadSize;
}
......
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