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
9c54cfa5
Commit
9c54cfa5
authored
Apr 02, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More portable signature check.
parent
cacbe216
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
stabs.c
debugger/stabs.c
+2
-1
No files found.
debugger/stabs.c
View file @
9c54cfa5
...
...
@@ -1192,6 +1192,7 @@ static enum DbgInfoLoad DEBUG_ProcessElfFile(const char* filename,
unsigned
int
load_offset
,
unsigned
int
*
dyn_addr
)
{
static
const
unsigned
char
elf_signature
[
4
]
=
{
0x7f
,
'E'
,
'L'
,
'F'
};
enum
DbgInfoLoad
dil
=
DIL_ERROR
;
char
*
addr
=
(
char
*
)
0xffffffff
;
int
fd
=
-
1
;
...
...
@@ -1229,7 +1230,7 @@ static enum DbgInfoLoad DEBUG_ProcessElfFile(const char* filename,
* table.
*/
ehptr
=
(
Elf32_Ehdr
*
)
addr
;
if
(
memcmp
(
ehptr
->
e_ident
,
ELFMAG
,
SELFMAG
))
goto
leave
;
if
(
memcmp
(
ehptr
->
e_ident
,
elf_signature
,
sizeof
(
elf_signature
)
))
goto
leave
;
spnt
=
(
Elf32_Shdr
*
)
(
addr
+
ehptr
->
e_shoff
);
shstrtab
=
(
addr
+
spnt
[
ehptr
->
e_shstrndx
].
sh_offset
);
...
...
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