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
fe517f92
Commit
fe517f92
authored
May 09, 2016
by
Kirill Smirnov
Committed by
Alexandre Julliard
May 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Fix an out-of-bounds array access (clang).
Signed-off-by:
Kirill K. Smirnov
<
kirill.k.smirnov@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0adf2af7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
regedit.c
programs/regedit/regedit.c
+2
-2
No files found.
programs/regedit/regedit.c
View file @
fe517f92
...
@@ -105,8 +105,8 @@ static void get_file_name(CHAR **command_line, CHAR *file_name)
...
@@ -105,8 +105,8 @@ static void get_file_name(CHAR **command_line, CHAR *file_name)
}
}
}
}
memcpy
(
file_name
,
*
command_line
,
pos
*
sizeof
((
*
command_line
)[
0
]));
memcpy
(
file_name
,
*
command_line
,
pos
*
sizeof
((
*
command_line
)[
0
]));
/*
remove the last
backslash */
/*
Terminate the string and remove the trailing
backslash */
if
(
file_name
[
pos
-
1
]
==
'\\'
)
{
if
(
pos
>
0
&&
file_name
[
pos
-
1
]
==
'\\'
)
{
file_name
[
pos
-
1
]
=
'\0'
;
file_name
[
pos
-
1
]
=
'\0'
;
}
else
{
}
else
{
file_name
[
pos
]
=
'\0'
;
file_name
[
pos
]
=
'\0'
;
...
...
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