<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FILEOPEN: Hangs trying to open invalid .doc file"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=86879#c17">Comment # 17</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FILEOPEN: Hangs trying to open invalid .doc file"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=86879">bug 86879</a>
              from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
        <pre>The pb is here precisely
<a href="https://opengrok.libreoffice.org/xref/core/sw/source/filter/ww8/ww8par.cxx?r=30c0134c#3102">https://opengrok.libreoffice.org/xref/core/sw/source/filter/ww8/ww8par.cxx?r=30c0134c#3102</a>
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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>