Bug 12513 – std.file: dirEntries-range crashes, when hitting the system folder "System Volume Information"

Status
RESOLVED
Resolution
DUPLICATE
Severity
major
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-04-03T05:56:21Z
Last change time
2020-03-21T03:56:41Z
Assigned to
No Owner
Creator
Christof Schardt

Comments

Comment #0 by christof — 2014-04-03T05:56:21Z
ca. line +-2590 in std.file.d bool stepIn(string directory) { string search_pattern = buildPath(directory, "*.*"); WIN32_FIND_DATAW findinfo; --> HANDLE h = FindFirstFileW(toUTF16z(search_pattern), &findinfo); --> cenforce(h != INVALID_HANDLE_VALUE, directory); ........ } The cenforce() throws, when the folder "System Volume Information" is handled. But this folder results in an INVALID HANDLE VALUE.
Comment #1 by b2.temp — 2016-03-23T01:51:59Z
*** This issue has been marked as a duplicate of issue 12391 ***