class FileRenameInformationEx to FileKnownFolderInformation could cause an out-of-bounds read of info_sizes.
-- v2: ntdll: Fix an out-of-bounds read (Coverity).
From: Zhiyi Zhang zzhang@codeweavers.com
class FileRenameInformationEx to FileKnownFolderInformation could cause an out-of-bounds read of info_sizes. --- dlls/ntdll/unix/file.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c index 98e50082904..d0f543971f0 100644 --- a/dlls/ntdll/unix/file.c +++ b/dlls/ntdll/unix/file.c @@ -4331,6 +4331,18 @@ NTSTATUS WINAPI NtQueryInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, 0, /* FileHardLinkFullIdInformation */ 0, /* FileIdExtdBothDirectoryInformation */ 0, /* FileDispositionInformationEx */ + 0, /* FileRenameInformationEx */ + 0, /* FileRenameInformationExBypassAccessCheck */ + 0, /* FileDesiredStorageClassInformation */ + 0, /* FileStatInformation */ + 0, /* FileMemoryPartitionInformation */ + 0, /* FileStatLxInformation */ + 0, /* FileCaseSensitiveInformation */ + 0, /* FileLinkInformationEx */ + 0, /* FileLinkInformationExBypassAccessCheck */ + 0, /* FileStorageReserveIdInformation */ + 0, /* FileCaseSensitiveInformationForceAccessCheck */ + 0, /* FileKnownFolderInformation */ };
struct stat st;