Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
1ab1c970
Commit
1ab1c970
authored
Nov 25, 2023
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Nov 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix an out-of-bounds read (Coverity).
class FileRenameInformationEx to FileKnownFolderInformation could cause an out-of-bounds read of info_sizes.
parent
5e9663c0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
file.c
dlls/ntdll/unix/file.c
+13
-1
No files found.
dlls/ntdll/unix/file.c
View file @
1ab1c970
...
...
@@ -4264,7 +4264,7 @@ NTSTATUS WINAPI NtQueryAttributesFile( const OBJECT_ATTRIBUTES *attr, FILE_BASIC
NTSTATUS
WINAPI
NtQueryInformationFile
(
HANDLE
handle
,
IO_STATUS_BLOCK
*
io
,
void
*
ptr
,
ULONG
len
,
FILE_INFORMATION_CLASS
class
)
{
static
const
size_t
info_sizes
[]
=
static
const
size_t
info_sizes
[
FileMaximumInformation
]
=
{
0
,
sizeof
(
FILE_DIRECTORY_INFORMATION
),
/* FileDirectoryInformation */
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment