Boris Krylov

Results comments of Boris Krylov

Here is log from regular file share. As you can see QueryDirectory returns BUFFER_OVERFLOW after first request. [Logfile2.PML.zip](https://github.com/dokan-dev/dokany/files/792944/Logfile2.PML.zip)

> Logfile2.PML.zip is empty :'( Clear procmon filter. System process filtered out by default. > What is your mount command ? Does the folder + file path are long ?...

> Just did a test with +500 picture without network option: It's only reproduced when accessing share from another PC. Locally operates normally.

[https://msdn.microsoft.com/en-us/library/windows/hardware/ff567047%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396](url) On the first call to ZwQueryDirectoryFile, if the structure created for the first entry found is too large to fit into the output buffer, the routine writes the fixed...

I suppose dokan driver dosn't check buffer for overflow. dokan 12:18:17.3683347 PM 0.0021408 System 4 QueryDirectory M:\* SUCCESS Filter: *, 1: bundlerminifier.core.2.0.nupkg, 2: libuv.1.9.1.0.nupkg, 3: libuv.1.9.nupkg, 4: .... 12:18:17.3706031 PM...

On second call of MatchFiles buffer is too small even for one file and incorrectly threaded as no more files. // NO_MORE_FILES if (index Operation.Directory.FileIndex) return -1;

FindFiles :C:\m\\ FindFiles return 1002 entries in C:\m\\* index from 0 FileMatch? : verylongfilename1.txt (*,0,0) =>return FileMatch? : verylongfilename10.txt (*,0,1) =>return FileMatch? : verylongfilename100.txt (*,0,2) =>return ........... FileMatch? : verylongfilename466.txt...

> It looks like its failing to resolve nuget dependencies. > > * System.ServiceModel.Syndication > * System.Runtime.Serialization.Schema > * System.IO.Ports > * System.Data.Odbc This errors come from stub forward only...