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
7bbb2120
Commit
7bbb2120
authored
Mar 15, 2007
by
Peter Oberndorfer
Committed by
Alexandre Julliard
Mar 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Initialize the elf_section_map in case of failures in elf_find_section.
Make sidx signed so sidx < 0 comparisons work. (most of the patch written by Eric Pouech)
parent
4c734110
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
elf_module.c
dlls/dbghelp/elf_module.c
+4
-3
No files found.
dlls/dbghelp/elf_module.c
View file @
7bbb2120
...
...
@@ -119,7 +119,7 @@ struct elf_file_map
struct
elf_section_map
{
struct
elf_file_map
*
fmap
;
unsigned
sidx
;
long
sidx
;
};
struct
symtab_elt
...
...
@@ -178,8 +178,7 @@ static BOOL elf_find_section(struct elf_file_map* fmap, const char* name,
if
(
fmap
->
shstrtab
==
ELF_NO_MAP
)
{
struct
elf_section_map
hdr_esm
=
{
fmap
,
fmap
->
elfhdr
.
e_shstrndx
};
fmap
->
shstrtab
=
elf_map_section
(
&
hdr_esm
);
if
(
fmap
->
shstrtab
==
ELF_NO_MAP
)
return
FALSE
;
if
((
fmap
->
shstrtab
=
elf_map_section
(
&
hdr_esm
))
==
ELF_NO_MAP
)
break
;
}
for
(
i
=
0
;
i
<
fmap
->
elfhdr
.
e_shnum
;
i
++
)
{
...
...
@@ -193,6 +192,8 @@ static BOOL elf_find_section(struct elf_file_map* fmap, const char* name,
}
fmap
=
fmap
->
alternate
;
}
esm
->
fmap
=
NULL
;
esm
->
sidx
=
-
1
;
return
FALSE
;
}
...
...
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