www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12513] New: std.file: dirEntries-range crashes, when hitting the system folder "System Volume Information"

https://d.puremagic.com/issues/show_bug.cgi?id=12513

           Summary: std.file:  dirEntries-range crashes, when hitting the
                    system folder "System Volume Information"
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: christof schardt.info



05:56:21 PDT ---
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.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 03 2014