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
b58094f7
Commit
b58094f7
authored
Oct 03, 2017
by
Fabian Maurer
Committed by
Alexandre Julliard
Oct 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Fix potential null-pointer dereference (cppcheck).
Signed-off-by:
Fabian Maurer
<
dark.shadow4@web.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fe2d4509
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
pdb.c
tools/winedump/pdb.c
+2
-1
No files found.
tools/winedump/pdb.c
View file @
b58094f7
...
...
@@ -215,7 +215,8 @@ static void *read_string_table(struct pdb_reader* reader)
stream_idx
=
get_stream_by_name
(
reader
,
"/names"
);
if
(
stream_idx
==
-
1
)
return
NULL
;
ret
=
reader
->
read_file
(
reader
,
stream_idx
);
if
(
ret
&&
*
(
const
DWORD
*
)
ret
==
0xeffeeffe
)
return
ret
;
if
(
!
ret
)
return
NULL
;
if
(
*
(
const
DWORD
*
)
ret
==
0xeffeeffe
)
return
ret
;
printf
(
"wrong header %x expecting 0xeffeeffe
\n
"
,
*
(
const
DWORD
*
)
ret
);
free
(
ret
);
return
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