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 created document. The output is empty.
> 
> Details: this bug was introduced in version 1:0.95 and is not reproducible 
> with previous versions of catdoc. Applying the attached patch to the source 
> code in version 0.95 (catdoc_0.95.orig.tar.gz) seems to fix the issue.

Thanks for the report, but I am not sure I understand this. The current
code in ole.c reads already like your proposed patch:

        if (nLen > OLENAMELENGTH) {
                free(e);
                return NULL;
        }

Although I can reproduce the issue you mention, so there is definitely a
bug. Sadly, catdoc's code is not the easiest to follow :/

-- 
Martín Ferrari (Tincho)

Reply via email to