<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 - Crash on undo / redo in Basic IDE"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=124413">124413</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash on undo / redo in Basic IDE
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.1.0.0.beta1+
          </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>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>BASIC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>tvataire@starxpert.fr
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
LibreOffice crashes when some text is copied and pasted, and then paste is undo
/ redo several times.

Steps to Reproduce:
1. Open the Basic macros organizer and edit the module Module1 of the Standard
library.
3. Select at least two lines in the module
4. Copy selected text and overwrite it with clipboard content with Paste
command.
5. Cancel paste with undo keyboard shortcut or menu.
6. Restore paste with redo keyboard shortcut or menu.
7. Cancel paste with undo keyboard shortcut or menu.


Actual Results:
This leads to a crash of LibreOffice.

Expected Results:
LibreOffice should not crash.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
No crash if the text is cut instead of copied.
No crash if only a single line is copied and pasted.
Crashes only if copied text is pasted on itself.

Crash report :
<a href="https://crashreport.libreoffice.org/stats/crash_details/8cd21ecb-da84-420d-b838-d8eacb36db85">https://crashreport.libreoffice.org/stats/crash_details/8cd21ecb-da84-420d-b838-d8eacb36db85</a>

Informations from 'Help - About LibreOffice' :
Version: 6.1.0.0.beta1
Build ID: 8c76dfe1284e211954c30f219b3a38dcdd82f8a0
Threads CPU : 1; OS : Linux 4.9; UI Render : par défaut; VCL: gtk2; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group</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>