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
7e5b3b3d
Commit
7e5b3b3d
authored
Oct 11, 1998
by
Ove Kaaven
Committed by
Alexandre Julliard
Oct 11, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a memset() to prevent a debugger segfault caused by
uninitialized pointers in the stabs lookup tables.
parent
15776efc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
stabs.c
debugger/stabs.c
+1
-0
No files found.
debugger/stabs.c
View file @
7e5b3b3d
...
@@ -162,6 +162,7 @@ DEBUG_FileSubNr2StabEnum(int filenr,int subnr) {
...
@@ -162,6 +162,7 @@ DEBUG_FileSubNr2StabEnum(int filenr,int subnr) {
stab_types
=
(
struct
datatype
**
)
xrealloc
(
stab_types
,
stab_types
=
(
struct
datatype
**
)
xrealloc
(
stab_types
,
num_stab_types
*
sizeof
(
struct
datatype
*
)
num_stab_types
*
sizeof
(
struct
datatype
*
)
);
);
memset
(
stab_types
+
curtypenum
,
0
,
sizeof
(
struct
datatype
*
)
*
(
num_stab_types
-
curtypenum
)
);
}
}
//fprintf(stderr,"(%d,%d) is %d\n",filenr,subnr,typenums[filenr][subnr]);
//fprintf(stderr,"(%d,%d) is %d\n",filenr,subnr,typenums[filenr][subnr]);
return
typenums
[
filenr
][
subnr
];
return
typenums
[
filenr
][
subnr
];
...
...
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