File: 50-crash-on-bad-file.patch

package info (click to toggle)
fcrackzip 1.0-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 736 kB
  • sloc: ansic: 4,455; sh: 743; makefile: 99; perl: 81
file content (17 lines) | stat: -rw-r--r-- 529 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: fix a crash on non-openable files
 The error handling for missing or otherwise non-openable files was bogus.
 Bug found via Mayhem fuzzing by Alexandre Rebert.
Author: Adam Borowski <kilobyte@angband.pl>
Bug-Debian: https://bugs.debian.org/715894

--- fcrackzip-1.0.orig/zipinfo.c
+++ fcrackzip-1.0/zipinfo.c
@@ -47,7 +47,7 @@ static void parse_zip (char *path)
   if (!f)
     {
       fprintf (stderr, "skipping '%s': %s\n", path, strerror (errno));
-      goto out;
+      return;
     }
   
   while (!feof (f))