sehang / dokan

Automatically exported from code.google.com/p/dokan
0 stars 0 forks source link

Requestor token - driver BSOD #222

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call DokanOpenRequestorToken from user code, possibly multiple times

What is the expected output? What do you see instead?
Expect to receive information about who is requesting a Dokan operation. 
Instead the driver has a BSOD due to a page fault.

What version of the product are you using? On what operating system?
Dokan 0.6.0 on Windows Server 2008 x64

Please provide any additional information below.
I believe the problem is in DokanGetAccessToken in sys\access.c. If the for 
loop that iterates over the linked list doesn't find an entry, the accessState 
variable will be uninitialized. The page fault will then occur on line 104. (I 
know this from using the debugger.) The fix is to initialize accessState to 
NULL.

Original issue reported on code.google.com by samuel.s...@gmail.com on 19 Apr 2011 at 6:24