<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Assertion failure in offline help viewer when searching for string starting or ending in non-alphanumeric character"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=126071">126071</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure in offline help viewer when searching for string starting or ending in non-alphanumeric character
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.4.0.0.alpha0+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>haveBacktrace
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>low
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>framework
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kelemeng@ubuntu.com
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>105537
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=152373" name="attach_152373" title="Backtrace of the assertion error">attachment 152373</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=152373&action=edit" title="Backtrace of the assertion error">[details]</a></span>
Backtrace of the assertion error

If I try to search for a string that ends with a dot the offline help viewer
crashes with an assertion error. 
In the non debug build I get a "There is no such topic" dialog when doing the
same.

To reproduce:
1. Open the offline help browser.
2. Go to the Search tab.
3. Enter "foo." and press the Find button.

The console shows this output:

soffice.bin: /home/gabor/src/core/sal/rtl/strtmpl.cxx:1378: void
rtl_uString_newFromSubString(rtl_uString**, const rtl_uString*, sal_Int32,
sal_Int32): Assertion `false' failed.

Happens in:
Version: 6.4.0.0.alpha0+
Build ID: ab5f341efd144adb6b7d0e00fece76a2153acd10
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: hu-HU (hu_HU.UTF-8); UI-Language: en-US
Calc: threaded

There is no assertion error when searching for "foo" or "foo.a" but there is
one if searching for ".foo". 
Also this happens with basically any non alphanumeric characters at the
beginning or end of the string: .,"+-%=?! all can reproduce the problematic
behavior.</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Assertion failed crashes"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=105537">Bug 105537</a>] [META] Assertion failed crashes
              </li>
          </ul>
        </div>
        <br>

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

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