src/docrecord.py | 6 ++++++ test/doc/pass/abi2252-1.doc |binary 2 files changed, 6 insertions(+)
New commits: commit f622f255668416d614e8949c1933b3cf6ffc952e Author: Miklos Vajna <vmik...@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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits