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
85557f36
Commit
85557f36
authored
Aug 30, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Aug 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Fix two internal buffer allocations.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5c271afc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
symbol.c
dlls/dbghelp/symbol.c
+2
-3
No files found.
dlls/dbghelp/symbol.c
View file @
85557f36
...
...
@@ -1170,8 +1170,7 @@ struct sym_enumW
PSYM_ENUMERATESYMBOLS_CALLBACKW
cb
;
void
*
ctx
;
PSYMBOL_INFOW
sym_info
;
char
buffer
[
sizeof
(
SYMBOL_INFOW
)
+
MAX_SYM_NAME
];
char
buffer
[
sizeof
(
SYMBOL_INFOW
)
+
MAX_SYM_NAME
*
sizeof
(
WCHAR
)];
};
static
BOOL
CALLBACK
sym_enumW
(
PSYMBOL_INFO
si
,
ULONG
size
,
PVOID
ctx
)
...
...
@@ -1438,7 +1437,7 @@ BOOL WINAPI SymFromNameW(HANDLE process, const WCHAR *name, SYMBOL_INFOW *symbol
TRACE
(
"(%p, %s, %p)
\n
"
,
process
,
debugstr_w
(
name
),
symbol
);
len
=
sizeof
(
*
si
)
+
symbol
->
MaxNameLen
*
sizeof
(
WCHAR
)
;
len
=
sizeof
(
*
si
)
+
symbol
->
MaxNameLen
;
if
(
!
(
si
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
)))
return
FALSE
;
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
name
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
...
...
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