Bug#874048: catdoc 1:0.95-3 fails to extract text from certain documents

2017-09-13 Thread Martín Ferrari
Robert, On 04/09/17 06:16, Robert Zavalczki wrote: > I think that the problem is that "nLen" is in bytes, but OLENAMELENGTH > is in UCS-2 characters. When processing the LibreOffice document an OLE > stream having the name "SummaryInformation\0" is encountered. The name > in bytes of this stream

Bug#874048: catdoc 1:0.95-3 fails to extract text from certain documents

2017-09-03 Thread Robert Zavalczki
Hi Martín, in the patch nLen is compared to OLENAMELENGTH * 2, not to OLENAMELENGTH: diff --git a/src/ole.c b/src/ole.c index 807ed5b..dbcda42 100644 --- a/src/ole.c +++ b/src/ole.c @@ -337,7 +337,7 @@ FILE *ole_readdir(FILE *f) { e->blocks=NULL; nLen=getshort(oleBuf,0x40); -

Bug#874048: catdoc 1:0.95-3 fails to extract text from certain documents

2017-09-03 Thread Martín Ferrari
Hi Robert, On 02/09/17 12:50, Robert Zavalczki wrote: > Package: catdoc > Version: 1:0.95-3 > Tags: patch > > Create a simple document in LibreOffice Writer 5.2.7.2 containing a single > line: "Hello world!" and save it using the "Microsoft Word 97-2003 (.doc)" > format. Run "catdoc" on the

Bug#874048: catdoc 1:0.95-3 fails to extract text from certain documents

2017-09-02 Thread Robert Zavalczki
Package: catdoc Version: 1:0.95-3 Tags: patch Create a simple document in LibreOffice Writer 5.2.7.2 containing a single line: "Hello world!" and save it using the "Microsoft Word 97-2003 (.doc)" format. Run "catdoc" on the created document. The output is empty. Details: this bug was