From: Adam Heath Date: Fri, 23 Aug 2002 04:08:35 +0000 (+0000) Subject: Fix segfault in md5sum if the file being checked doesn't exist. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a76faa4a7a4ecf6e9b9d3fc4a41aacb32b2dd7b;p=dpkg Fix segfault in md5sum if the file being checked doesn't exist. --- diff --git a/ChangeLog b/ChangeLog index fa68b92d..39451722 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Aug 22 23:01:53 CDT 2002 Adam Heath + + * utils/md5sum.c: Fix segfault in md5sum if the file being checked + doesn't exist. + Thu Aug 22 22:59:54 CDT 2002 Adam Heath * version-nr, debian/changelog: Modified for 1.10.5. diff --git a/debian/changelog b/debian/changelog index bd0a580a..ac3243fc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,8 @@ dpkg (1.10.5) unstable; urgency=low + * Fix segfault in md5sum if the file being checked doesn't exist. + Closes: #154503. + -- Adam Heath UNRELEASED dpkg (1.10.4) unstable; urgency=low diff --git a/utils/md5sum.c b/utils/md5sum.c index 268206fb..37b5654c 100644 --- a/utils/md5sum.c +++ b/utils/md5sum.c @@ -267,11 +267,11 @@ do_check(FILE *chkf) case 2: fprintf(stderr, _("%s: can't open %s\n"), progname, filename); ex = 2; - break; + continue; case 3: fprintf(stderr, _("%s: error reading %s\n"), progname, filename); ex = 2; - break; + continue; } if (memcmp(chk_digest, file_digest, 32) != 0) { if (verbose)