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
3b5107d0
Commit
3b5107d0
authored
Aug 19, 2015
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Aug 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Prevent buffer overrun.
parent
453d71b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
security.c
dlls/advapi32/security.c
+4
-1
No files found.
dlls/advapi32/security.c
View file @
3b5107d0
...
...
@@ -4512,13 +4512,15 @@ static BOOL ParseStringSecurityDescriptorToSecurityDescriptor(
{
BOOL
bret
=
FALSE
;
WCHAR
toktype
;
WCHAR
tok
[
MAX_PATH
]
;
WCHAR
*
tok
;
LPCWSTR
lptoken
;
LPBYTE
lpNext
=
NULL
;
DWORD
len
;
*
cBytes
=
sizeof
(
SECURITY_DESCRIPTOR
);
tok
=
heap_alloc
(
(
lstrlenW
(
StringSecurityDescriptor
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
SecurityDescriptor
)
lpNext
=
(
LPBYTE
)(
SecurityDescriptor
+
1
);
...
...
@@ -4640,6 +4642,7 @@ static BOOL ParseStringSecurityDescriptorToSecurityDescriptor(
bret
=
TRUE
;
lend:
heap_free
(
tok
);
return
bret
;
}
...
...
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