Windows: _._AFS_IOCTL_._ size is zero
authorJeffrey Altman <jaltman@your-file-system.com>
Tue, 22 Nov 2011 21:36:18 +0000 (16:36 -0500)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 23 Nov 2011 14:03:38 +0000 (06:03 -0800)
When replying to a FileStandardInformation query on the pioctl
special file, the size of the file is 0.  Failure to return 0
can result in an anti-virus program attempting to read the file
via a paging request which will fail.

Change-Id: I83f2f40cca99c04a5fe06546f19bdf96dfbb4951
Reviewed-on: http://gerrit.openafs.org/6109
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>

src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp

index 3ac9a85..a4d7df8 100644 (file)
@@ -3183,8 +3183,8 @@ AFSProcessPIOCtlQueryInfo( IN IRP *Irp,
 
                     pStandard->NumberOfLinks = 1;
                     pStandard->DeletePending = 0;
-                    pStandard->AllocationSize.QuadPart = 4096;
-                    pStandard->EndOfFile.QuadPart = 4096;
+                    pStandard->AllocationSize.QuadPart = 0;
+                    pStandard->EndOfFile.QuadPart = 0;
                     pStandard->Directory = 0;
 
                     *Length -= sizeof( FILE_STANDARD_INFORMATION);