mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
This PR improves the safety and reliability of the deleteOldFiles() function by: Preventing symlink attacks Uses std::filesystem::canonical() to resolve all paths, eliminating ./.. and symlinks Verifies each file is actually inside the target directory before deletion Safer file operations Explicitly skips non-regular files (directories/symlinks) --------- Co-authored-by: Nik <werwolv98@gmail.com>