https://bugs.documentfoundation.org/show_bug.cgi?id=173869

--- Comment #5 from Julien Nabet <[email protected]> ---
I confirm it works!

So the patch would be:
diff --git a/sot/source/sdstor/stgelem.cxx b/sot/source/sdstor/stgelem.cxx
index a4d06eb55d5a..904f552f4239 100644
--- a/sot/source/sdstor/stgelem.cxx
+++ b/sot/source/sdstor/stgelem.cxx
@@ -193,9 +193,9 @@ static bool isKnownSpecial(sal_Int32 nLocation)
 // Perform thorough checks also on unknown variables
 bool StgHeader::Check()
 {
+    short version = static_cast<short>( m_nVersion >> 16 );
     return  memcmp( m_cSignature, cStgSignature, 8 ) == 0
-            && static_cast<short>( m_nVersion >> 16 ) == 3
-            && m_nPageSize == 9
+            && ((version == 3 && m_nPageSize == 9) || (version == 4 &&
m_nPageSize == 12))
             && lcl_wontoverflow(m_nPageSize)
             && lcl_wontoverflow(m_nDataPageSize)
             && m_nFATSize > 0

Would you like to submit the patch yourself?
Indeed you did 95% of the job (analysis and propose a fix), the only 3 things
you need to do is:
- configure gerrit account
- send a license statement to LO dev mailing list
- retrieve the repo
- prepare the patch and send it
See https://wiki.documentfoundation.org/Development/GetInvolved

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to