[Libreoffice-bugs] [Bug 86879] FILEOPEN: Hangs trying to open invalid .doc file

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Feb 13 21:16:38 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=86879

--- Comment #17 from Julien Nabet <serval2412 at yahoo.fr> ---
The pb is here precisely
https://opengrok.libreoffice.org/xref/core/sw/source/filter/ww8/ww8par.cxx?r=30c0134c#3102
3101      sal_Int32 nL2;
3102      for (nL2 = 0; nL2 < nStrLen; ++nL2)
3103      {
...
3118  
3119          if ((32 > nUCode) || (0xa0 == nUCode))
3120          {
3121              m_pStrm->SeekRel( m_bIsUnicode ? -2 : -1 );
3122              break; // Special character < 32, == 0xa0 found
3123          }
3124  
We enter at nL2 = 0, we enter in "if" condition because of something wrong in
the file.
So we go backward in the file with call to m_pStrm->SeekRel with negative
value.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190213/e5c505b8/attachment.html>


More information about the Libreoffice-bugs mailing list