https://bugs.kde.org/show_bug.cgi?id=520794
Méven <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Latest Commit| |https://invent.kde.org/fram | |eworks/kio/-/commit/72a9367 | |e441aa581d7d37bfa6c4c066ebd | |f2fec4 Resolution|--- |FIXED --- Comment #13 from Méven <[email protected]> --- Git commit 72a9367e441aa581d7d37bfa6c4c066ebdf2fec4 by Méven Car. Committed on 13/10/2026 at 07:26. Pushed by meven into branch 'master'. trash: fix the crash when a full trash deletes a directory With "Delete oldest files" or "Delete biggest files" set, a trash over its size limit makes room before taking a new file. When the item to delete was a directory, adaptTrashSize() looked up its size in the directory size cache under the path of the files folder. The cache is keyed by the percent-encoded name of each trashed directory, so the lookup never matched, and the worker dereferenced the end iterator and crashed. The lookup now uses the name of the directory, as the cache scan does. A directory that is not in the cache is measured instead. M +52 -0 src/kioworkers/trash/tests/testtrash.cpp M +1 -0 src/kioworkers/trash/tests/testtrash.h M +2 -1 src/kioworkers/trash/trashimpl.cpp https://invent.kde.org/frameworks/kio/-/commit/72a9367e441aa581d7d37bfa6c4c066ebdf2fec4 -- You are receiving this mail because: You are watching all bug changes.
