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
5537fbbc
Commit
5537fbbc
authored
Sep 21, 2006
by
Aric Stewart
Committed by
Alexandre Julliard
Sep 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Correct buffer overflows in IME processing code.
parent
966c5b6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
edit.c
dlls/user/edit.c
+3
-3
No files found.
dlls/user/edit.c
View file @
5537fbbc
...
...
@@ -5341,7 +5341,7 @@ static void EDIT_GetCompositionStr(HWND hwnd, LPARAM CompFlag, EDITSTATE *es)
return
;
}
lpCompStr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwBufLen
);
lpCompStr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwBufLen
+
sizeof
(
WCHAR
)
);
if
(
!
lpCompStr
)
{
ERR
(
"Unable to allocate IME CompositionString
\n
"
);
...
...
@@ -5362,7 +5362,7 @@ static void EDIT_GetCompositionStr(HWND hwnd, LPARAM CompFlag, EDITSTATE *es)
if
(
dwBufLenAttr
)
{
dwBufLenAttr
++
;
lpCompStrAttr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwBufLenAttr
);
lpCompStrAttr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwBufLenAttr
+
1
);
if
(
!
lpCompStrAttr
)
{
ERR
(
"Unable to allocate IME Attribute String
\n
"
);
...
...
@@ -5417,7 +5417,7 @@ static void EDIT_GetResultStr(HWND hwnd, EDITSTATE *es)
return
;
}
lpResultStr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwBufLen
);
lpResultStr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwBufLen
+
sizeof
(
WCHAR
)
);
if
(
!
lpResultStr
)
{
ERR
(
"Unable to alloc buffer for IME string
\n
"
);
...
...
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