Kaydet (Commit) 4a104422 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#57532 restrict page sanity check to non-storage chunks

Change-Id: I47c24131e95b9a8a691dbff4710869ba91df8306
üst 625ce5e9
......@@ -389,7 +389,7 @@ sal_Bool StgEntry::Load( const void* pFrom, sal_uInt32 nBufSize )
if (n > nMaxLegalStr)
return sal_False;
if ((nSize < 0 && cType != STG_STORAGE) || (nPage1 < 0 && !isKnownSpecial(nPage1)))
if ((cType != STG_STORAGE) && ((nSize < 0) || (nPage1 < 0 && !isKnownSpecial(nPage1))))
{
// the size makes no sense for the substorage
// TODO/LATER: actually the size should be an unsigned value, but in this case it would mean a stream of more than 2Gb
......
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