[fixed] x64 crashes when encountering NTFS junctions with long targets (>=113 characters)

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
daniel_m
Posts: 232
Joined: 11 Apr 2010 11:47
Location: Windows 10 Pro 22H2, scaling 100%

[fixed] x64 crashes when encountering NTFS junctions with long targets (>=113 characters)

Post by daniel_m »

While browsing my zigbee2mqtt folder, XYplorer (x64 v27.90.0032) suddenly crashed without an error message.
After a lot of trial and error, I found that an NTFS junction with a long target >=113 characters caused the crash. Furthermore, EnableCustomFileIcons can make things worse.

How to replicate the issue:

1) Open a command prompt and create a junction with a 113 characters long target on C:\

Code: Select all

mklink /J c:\test "c:\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
2) Open a fresh installation of XYplorer x64 (v27.90.0032) and navigate to C:\
3) Hover the mouse cursor over the junction "test", or try to double-click "test"
=> XYplorer crashes

When custom file icons are enabled (EnableCustomFileIcons=1), XYplorer crashes already at step 2).


I also noticed that XYplorer doesn't show the target of any junction. When looking at a junction with a target <113 characters, hovering over it will show the info pop-up. But the "Junction Target:" is empty.

As a side note: It doesn't matter if the target actually exists or not. I verified that the "overlong" junction in my zigbee2mqtt folder points to a valid folder, and Windows Explorer does show its content without any errors. The junction name itself can be as long as possible (255 characters) without causing a crash.
Last edited by daniel_m on 22 Aug 2025 14:00, edited 1 time in total.
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%

admin
Site Admin
Posts: 66534
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: x64 crashes when encountering NTFS junctions with long targets (>=113 characters)

Post by admin »

Confirmed, good bug! :bug: :tup: Fixed in next beta.

Post Reply