]> err.no Git - dpkg/commitdiff
Fix segfault in md5sum if the file being checked doesn't exist.
authorAdam Heath <doogie@debian.org>
Fri, 23 Aug 2002 04:08:35 +0000 (04:08 +0000)
committerAdam Heath <doogie@debian.org>
Fri, 23 Aug 2002 04:08:35 +0000 (04:08 +0000)
ChangeLog
debian/changelog
utils/md5sum.c

index fa68b92d5523e9c6dff5f680e3813d617bf7aa05..39451722e5f7dd062190e5c9e55cca0adca0acdd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Aug 22 23:01:53 CDT 2002 Adam Heath <doogie@debian.org>
+
+  * 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 <doogie@debian.org>
  
   * version-nr, debian/changelog: Modified for 1.10.5.
index bd0a580a6dd3b7eb33097d818199c58886468822..ac3243fcd9e227e3e962103780fa329490b0633a 100644 (file)
@@ -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 <doogie@debian.org>  UNRELEASED
 
 dpkg (1.10.4) unstable; urgency=low
index 268206fbb634147fc32ce3accbe89559b3a8deee..37b5654c78624ac466da006ee766f74fef0b5f80 100644 (file)
@@ -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)