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
7c3f3d09
Commit
7c3f3d09
authored
Oct 25, 2012
by
Jason Edmeades
Committed by
Alexandre Julliard
Nov 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Don't overflow parameter length when copying substring.
parent
37035e53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+1
-1
wcmdmain.c
programs/cmd/wcmdmain.c
+1
-0
No files found.
programs/cmd/tests/test_builtins.cmd.exp
View file @
7c3f3d09
...
...
@@ -275,7 +275,7 @@ P0S
q
qwe
er
@todo_wine@
'ty'@or_broken@''
'ty'@or_broken@''
't'@or_broken@''
ert@or_broken@qwerty
e@or_broken@qwerty
...
...
programs/cmd/wcmdmain.c
View file @
7c3f3d09
...
...
@@ -730,6 +730,7 @@ static WCHAR *WCMD_expand_envvar(WCHAR *start,
else
if
(
copybytes
<
0
)
copybytes
=
0
;
WCMD_strsubstW
(
start
,
endOfVar
+
1
,
startCopy
,
copybytes
);
}
else
{
substrlength
=
min
(
substrlength
,
len
-
(
startCopy
-
thisVarContents
+
1
));
WCMD_strsubstW
(
start
,
endOfVar
+
1
,
startCopy
,
substrlength
);
}
...
...
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