Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f2b7ec1c
Commit
f2b7ec1c
authored
Jul 14, 2009
by
Eric Pouech
Committed by
Alexandre Julliard
Jul 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Fixed regressions introduced by growing arrays exponentially instead of linearly.
parent
8013e45e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
minidump.c
dlls/dbghelp/minidump.c
+19
-13
No files found.
dlls/dbghelp/minidump.c
View file @
f2b7ec1c
...
...
@@ -266,18 +266,23 @@ static BOOL add_module(struct dump_context* dc, const WCHAR* name,
dc
->
modules
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
dc
->
modules
,
dc
->
alloc_modules
*
sizeof
(
*
dc
->
modules
));
}
if
(
!
dc
->
modules
)
return
FALSE
;
if
(
!
dc
->
modules
)
{
dc
->
alloc_modules
=
dc
->
num_modules
=
0
;
return
FALSE
;
}
if
(
is_elf
||
!
GetModuleFileNameExW
(
dc
->
hProcess
,
(
HMODULE
)
base
,
dc
->
modules
[
dc
->
num_modules
-
1
].
name
,
sizeof
(
dc
->
modules
[
dc
->
num_modules
-
1
].
name
)
/
sizeof
(
WCHAR
)))
lstrcpynW
(
dc
->
modules
[
dc
->
num_modules
-
1
].
name
,
name
,
sizeof
(
dc
->
modules
[
dc
->
num_modules
-
1
].
name
)
/
sizeof
(
WCHAR
));
dc
->
modules
[
dc
->
num_modules
-
1
].
base
=
base
;
dc
->
modules
[
dc
->
num_modules
-
1
].
size
=
size
;
dc
->
modules
[
dc
->
num_modules
-
1
].
timestamp
=
timestamp
;
dc
->
modules
[
dc
->
num_modules
-
1
].
checksum
=
checksum
;
dc
->
modules
[
dc
->
num_modules
-
1
].
is_elf
=
is_elf
;
dc
->
modules
[
dc
->
num_modules
].
name
,
sizeof
(
dc
->
modules
[
dc
->
num_modules
].
name
)
/
sizeof
(
WCHAR
)))
lstrcpynW
(
dc
->
modules
[
dc
->
num_modules
].
name
,
name
,
sizeof
(
dc
->
modules
[
dc
->
num_modules
].
name
)
/
sizeof
(
WCHAR
));
dc
->
modules
[
dc
->
num_modules
].
base
=
base
;
dc
->
modules
[
dc
->
num_modules
].
size
=
size
;
dc
->
modules
[
dc
->
num_modules
].
timestamp
=
timestamp
;
dc
->
modules
[
dc
->
num_modules
].
checksum
=
checksum
;
dc
->
modules
[
dc
->
num_modules
].
is_elf
=
is_elf
;
dc
->
num_modules
++
;
return
TRUE
;
}
...
...
@@ -402,9 +407,10 @@ static void add_memory_block(struct dump_context* dc, ULONG64 base, ULONG size,
}
if
(
dc
->
mem
)
{
dc
->
mem
[
dc
->
num_mem
-
1
].
base
=
base
;
dc
->
mem
[
dc
->
num_mem
-
1
].
size
=
size
;
dc
->
mem
[
dc
->
num_mem
-
1
].
rva
=
rva
;
dc
->
mem
[
dc
->
num_mem
].
base
=
base
;
dc
->
mem
[
dc
->
num_mem
].
size
=
size
;
dc
->
mem
[
dc
->
num_mem
].
rva
=
rva
;
dc
->
num_mem
++
;
}
else
dc
->
num_mem
=
dc
->
alloc_mem
=
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