Created attachment 176446 [details]
file containing string with a bookmark
When trying to copy text containing bookmark (according to tools > options > formatting aids. Created for example from inserting TOC for heading) and paste in already sected text (replacing) crash occurs.
There is a string with bookmark at the beginning in attached file.
To reproduce a bug:
1. Select full string.
2. Copy (via ctrl+c or from context menu)
3. Select full string again.
4. Paste (via ctrl+v or from context menu)
This bug was filed from the crash reporting server and is br-4a644394-6aa5-44df-b31a-acec5c5192e3.
Version: 22.214.171.124 (x64) / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
CPU threads: 2; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Thanks for reporting this issue.
Regression introduced by https://cgit.freedesktop.org/libreoffice/core/commit/?id=4bf04dea9afb30a9395e80b07a81d1908937ee8b
Which is the same as in bug 145621
Closing as DUPLICATED
*** This bug has been marked as a duplicate of bug 145621 ***