mirror of
https://github.com/SabreTools/SabreTools.IO.git
synced 2026-02-04 05:36:05 +00:00
Calling IOExtensions.SafeGetFiles with SearchOption.AllDirectories results in infinite loop on disc with folder that symlinks to itself #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HeroponRikiBestest on GitHub (Jan 20, 2026).
http://redump.org/disc/130441/ features a set of folders in the directory /Install Leisure Suit Larry - Wet Dreams Don't Dry.app/Contents/Resources/EULA.pkg/Contents/Resources/, each of which contain a folder named License.rtf which symlinks to the directory it's in. Attempting to read any directory at or above this directory results in IOExtensions.SafeGetFiles getting stuck in an infinite loop due to there not being any protection against this with Directory.GetFiles(path, searchPattern, searchOption). I'm opening an issue rather than a PR because I'm not sure how to solve this using functions available for all supported dotnet versions.
@Deterous commented on GitHub (Jan 20, 2026):
Could be related to https://github.com/SabreTools/BinaryObjectScanner/issues/276
@HeroponRikiBestest commented on GitHub (Jan 20, 2026):
Ah, yeah, you're right. Closing since it seems like there's no reasonable fix for this.