https://bugs.kde.org/show_bug.cgi?id=433084

--- Comment #23 from Thomas Fischer <fisc...@unix-ag.uni-kl.de> ---
Git commit ee125af91d7d4e8dfc8927cad85694b55de27a84 by Thomas Fischer.
Committed on 04/01/2023 at 22:00.
Pushed by thomasfischer into branch 'master'.

Fixing crash when opening .bib file

In certain situations, also depending on Linux distributions (varying Qt
and KDE Frameworks versions), opening a bibliography file can cause
crashes (segmentation faults) due to an invalid model or its underlying
data.

This commit changes the order of two instructions. Now first an internal
variable is properly set. Only then an update on the model is applied.

The largest part of this commit is a new test that reproducibly crashes
without the changed order of two instructions, but passes after the fix
has been applied.

This commit is a forward-port of commit 4aea6ed35b1629b3dba65a44 from
branch 'kbibtex/0.10'.
Related: bug 453455

M  +36   -0    src/test/CMakeLists.txt
A  +66   -0    src/test/kbibtexguitest.cpp     [License: GPL (v2+)]

https://invent.kde.org/office/kbibtex/commit/ee125af91d7d4e8dfc8927cad85694b55de27a84

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to