Marcus Meissner : winedump: Check return value of fetch_block (Coverity).
20 Feb
2008
20 Feb
'08
12:46 p.m.
Module: wine Branch: master Commit: 8063d6572bfd1ad316187136ee94840ad84d1a02 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8063d6572bfd1ad316187136ee... Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Tue Feb 19 22:46:04 2008 +0100 winedump: Check return value of fetch_block (Coverity). --- tools/winedump/lnk.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tools/winedump/lnk.c b/tools/winedump/lnk.c index 53d2a55..de1e95a 100644 --- a/tools/winedump/lnk.c +++ b/tools/winedump/lnk.c @@ -425,6 +425,8 @@ void lnk_dump(void) offset = 0; hdr = fetch_block(); + if (!hdr) + return; printf("Header\n"); printf("------\n\n");
6602
Age (days ago)
6602
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard