LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-Aug-2009, 03:14 PM
Junior Member
 
Join Date: Aug 2009
Posts: 2
allendorfer 0 reputation points
Default Locking Bug in Client for Vista 2

Client for Vista v1 and v2 have a locking bug:
1) CreateFile("test.dat", /*read/write, sharing, etc */)
2) LockFile( /* offset >= 4GB, number of bytes to lock can be 1 */)
3) UnlockFile() // this unlock works
4) LockFile( do the same as step #2)
5) UnlockFile() // this unlock appears to succeed but no unlock takes place
6) Any other process that attempts to lock the same region at this point will get a ERROR_LOCK_VIOLATION
7) CloseFile() // Now the lock is cleared.

Summary:
Every other unlock call appears to succeed but actually fails/does nothing
Lock region offset >= 4GB
Client32 doesn't have this problem
Server is Netware 6.5
Demonstration C program source attached
Attached Files:
File Type: txt NovellVistaLockDemo.txt (7.3 KB, 4 views)
Reply With Quote
 

Tags
vista client locking bug

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 05:18 PM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2