View | Details | Raw Unified | Return to bug 145180
Collapse All | Expand All

(-)files/patch-loader_png.c (-1 / +1 lines)
Lines 5-11 Link Here
5
         /* if we haven't read the header before, set the header data */
5
         /* if we haven't read the header before, set the header data */
6
         fread(buf, 1, PNG_BYTES_TO_CHECK, f);
6
         fread(buf, 1, PNG_BYTES_TO_CHECK, f);
7
-        if (!png_check_sig(buf, PNG_BYTES_TO_CHECK))
7
-        if (!png_check_sig(buf, PNG_BYTES_TO_CHECK))
8
+        if (png_check_sig(buf, 0, PNG_BYTES_TO_CHECK) != 0)
8
+        if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK))
9
           {
9
           {
10
              fclose(f);
10
              fclose(f);
11
              return 0;
11
              return 0;

Return to bug 145180