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

Christoph Cullmann <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/kcoreaddons/-/commit
                   |                            |/54da24a3512705a9374c1e61aa
                   |                            |b34c70259a34d9
             Status|ASSIGNED                    |RESOLVED

--- Comment #28 from Christoph Cullmann <[email protected]> ---
Git commit 54da24a3512705a9374c1e61aab34c70259a34d9 by Christoph Cullmann.
Committed on 29/07/2025 at 15:42.
Pushed by cullmann into branch 'master'.

fix crash/stack overflow on drive removal on Windows

on e.g. Windows we can end up with a removed drive Y:

parentDirectory() will then lead to infinite

Y:/.. Y:/../.. and Co. chains

introduce isRoot to not go up if we are at some root already
add test that this is true for a drive letter

fix parentDirectory() to use QFileInfo(path).absolutePath()
to avoid Y:/../.. that will not be detected as root

M  +25   -4    autotests/kdirwatch_unittest.cpp
M  +37   -16   src/lib/io/kdirwatch.cpp
M  +5    -0    src/lib/io/kdirwatch_p.h

https://invent.kde.org/frameworks/kcoreaddons/-/commit/54da24a3512705a9374c1e61aab34c70259a34d9

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

Reply via email to