https://bugs.freedesktop.org/show_bug.cgi?id=77308

Michael Stahl <mst...@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
            Summary|FILESAVE: .odt file written |FILESAVE: .odt file with
                   |by LO 4.2.x won't open in   |over-long text:style-name
                   |older LO branches and AOO   |won't open in LO 4.1 and
                   |                            |earlier branches and AOO

--- Comment #16 from Michael Stahl <mst...@redhat.com> ---
4.1 loops inside SwFormTokensHelper::SwFormTokensHelper
because its input is truncated to 2^16 characters,
and it can't find its terminating ">" character that was cut off.

4.2 can read it because the tools Strings with their 16bit limit
are gone, and the input is not truncated.

the input contains several text:style-name attribute values
on text:index-entry-bibliography elements from the content.xml,
and the problem is that each of those is > 22k characters long,
which is probably not intended...

i'll push a fix for the infinite loop to master (just in case
somebody it's possible to set such invalid input via the UNO API),
but it would be really interesting to know where the
ridiculously long "text:style-name" come from.

can somebody reproduce creating such a file from scratch?
what are the steps to do it?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to