mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
sys: ea: buffers from user mode fs can have zero length
This commit is contained in:
parent
6406246ce2
commit
c6b7b7586e
@ -683,6 +683,10 @@ NTSTATUS FspEaBufferFromFileSystemValidate(
|
||||
|
||||
*PErrorOffset = 0;
|
||||
|
||||
/* EA buffers from the user mode file system are allowed to have zero length */
|
||||
if (0 == Length)
|
||||
return STATUS_SUCCESS;
|
||||
|
||||
/* EA buffers from the user mode file system are allowed to end with NextEntryOffset != 0 */
|
||||
for (PFILE_FULL_EA_INFORMATION Ea = Buffer, EaEnd = (PVOID)((PUINT8)Ea + Length);
|
||||
EaEnd > Ea; Ea = FSP_NEXT_EA(Ea, EaEnd))
|
||||
|
Loading…
x
Reference in New Issue
Block a user