Package: dcraw / 9.28-2

715777.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Bugfix #715777.
--- a/clean_crw.c
+++ b/clean_crw.c
@@ -37,6 +37,10 @@
   for (arg=1; arg < argc; arg++) {
     status = 1;
     fp = fopen (argv[arg], "rb");
+    if (!fp) {
+      fprintf(stderr, "Cannot open file!\n");
+      return 2;
+    }
     fseek (fp, 0, SEEK_END);
     size = ftell(fp);
     buffer = malloc (size + strlen(argv[arg]) + 10);