File: 906530.patch

package info (click to toggle)
dcraw 9.28-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 9,084 kB
  • sloc: ansic: 51,198; sh: 35; makefile: 14
file content (16 lines) | stat: -rw-r--r-- 417 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Author: Filip Hroch <hroch@physics.muni.cz>
Description: NULL dereference bug
--- a/dcraw.c
+++ b/dcraw.c
@@ -284,8 +284,10 @@
 {
   if (!data_error) {
     fprintf (stderr, "%s: ", ifname);
-    if (feof(ifp))
+    if (feof(ifp)) {
       fprintf (stderr,_("Unexpected end of file\n"));
+      longjmp (failure, 1);
+    }
     else
       fprintf (stderr,_("Corrupt data near 0x%llx\n"), (INT64) ftello(ifp));
   }