Kaydet (Commit) 12143f8f authored tarafından Caolán McNamara's avatar Caolán McNamara

clip Sttbf to available data

Change-Id: Iaa6a8a8505a28cf3c24a48f832bfc618b39c3f32
üst f3c7a366
This diff was suppressed by a .gitattributes entry.
......@@ -32,6 +32,8 @@ namespace ww8
{
if (checkSeek(rSt, nPos))
{
sal_Size nRemainingSize = rSt.remainingSize();
nSize = std::min<sal_uInt32>(nRemainingSize, nSize);
mp_data.reset(new sal_uInt8[nSize]);
mn_size = rSt.Read(mp_data.get(), 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