D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 12513 - std.file: dirEntries-range crashes, when hitting the system folder "System Volume Information"
Summary: std.file: dirEntries-range crashes, when hitting the system folder "System V...
Status: RESOLVED DUPLICATE of issue 12391
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P2 major
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-03 05:56 UTC by Christof Schardt
Modified: 2020-03-21 03:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Christof Schardt 2014-04-03 05:56:21 UTC
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 basile-z 2016-03-23 01:51:59 UTC

*** This issue has been marked as a duplicate of issue 12391 ***