https://bugs.kde.org/show_bug.cgi?id=521325
Méven <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDSINFO |RESOLVED Resolution|WAITINGFORINFO |FIXED Latest Commit| |https://invent.kde.org/libr | |aries/baloo-widgets/-/commi | |t/11a33aae0efbb0699a8590102 | |0285c4fab2ba1c9 --- Comment #5 from Méven <[email protected]> --- Git commit 11a33aae0efbb0699a85901020285c4fab2ba1c9 by Méven Car. Committed on 13/06/2026 at 11:29. Pushed by meven into branch 'master'. tagsfileitemaction: fix crash on empty selection TagsFileItemAction::actions() only guarded against multiple selected items (size > 1) before calling urlList().constFirst().toLocalFile(). On an empty selection, such as a viewport context menu where no item is under the cursor, urlList() is empty and constFirst() is undefined behaviour, dereferencing a garbage QUrl and crashing in QUrl::toLocalFile. This action only ever handles a single file, so require exactly one url (size == 1), which rejects both the empty and multi-selection cases. M +3 -1 src/tagsfileitemactionplugin/tagsfileitemaction.cpp https://invent.kde.org/libraries/baloo-widgets/-/commit/11a33aae0efbb0699a85901020285c4fab2ba1c9 -- You are receiving this mail because: You are watching all bug changes.
