Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
9fcb2c88
Commit
9fcb2c88
authored
Apr 30, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Account for null terminating char in unload traces (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4c5dd0e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
loader.c
dlls/ntdll/loader.c
+1
-1
No files found.
dlls/ntdll/loader.c
View file @
9fcb2c88
...
...
@@ -177,7 +177,7 @@ static unsigned int unload_trace_seq;
static
void
module_push_unload_trace
(
const
LDR_MODULE
*
ldr
)
{
RTL_UNLOAD_EVENT_TRACE
*
ptr
=
&
unload_traces
[
unload_trace_seq
];
unsigned
int
len
=
min
(
sizeof
(
ptr
->
ImageName
),
ldr
->
BaseDllName
.
Length
);
unsigned
int
len
=
min
(
sizeof
(
ptr
->
ImageName
)
-
sizeof
(
WCHAR
)
,
ldr
->
BaseDllName
.
Length
);
ptr
->
BaseAddress
=
ldr
->
BaseAddress
;
ptr
->
SizeOfImage
=
ldr
->
SizeOfImage
;
...
...
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