[Libreoffice-commits] mso-dumper.git: src/docrecord.py test/doc
Miklos Vajna
vmiklos at kemper.freedesktop.org
Fri Aug 23 00:27:20 PDT 2013
src/docrecord.py | 6 ++++++
test/doc/pass/abi2252-1.doc |binary
2 files changed, 6 insertions(+)
New commits:
commit f622f255668416d614e8949c1933b3cf6ffc952e
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Fri Aug 23 09:26:14 2013 +0200
handle truncated Dop2000
diff --git a/src/docrecord.py b/src/docrecord.py
index b98524d..69d3571 100644
--- a/src/docrecord.py
+++ b/src/docrecord.py
@@ -2162,6 +2162,12 @@ class Dop2000(DOCDirStream):
dop97 = Dop97(self)
dop97.dump()
+ if self.pos == self.size:
+ print '<info what="Dop2000 size is smaller than expected."/>'
+ print '</dop2000>'
+ self.dop.pos = self.pos
+ return
+
self.printAndSet("ilvlLastBulletMain", self.readuInt8())
self.printAndSet("ilvlLastNumberMain", self.readuInt8())
self.printAndSet("istdClickParaType", self.readuInt16())
diff --git a/test/doc/pass/abi2252-1.doc b/test/doc/pass/abi2252-1.doc
new file mode 100644
index 0000000..103bf4c
Binary files /dev/null and b/test/doc/pass/abi2252-1.doc differ
More information about the Libreoffice-commits
mailing list