ports/145257: [PATCH] graphics/evas-loader-png: png v1.4 fix

Radek Valášek valin at buchlovice.org
Thu Apr 1 07:30:06 UTC 2010


>Number:         145257
>Category:       ports
>Synopsis:       [PATCH] graphics/evas-loader-png: png v1.4 fix
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 01 07:30:05 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Radek Valášek
>Release:        FreeBSD 8.0-STABLE amd64
>Organization:
>Environment:
FreeBSD osiris 8.0-STABLE FreeBSD 8.0-STABLE #35: Tue Mar 30 20:21:15 CEST 2010     root at osiris:/usr/obj/usr/src/sys/OSIRIS  amd64
>Description:
- Fix undefined symbol "png_check_sig" after png v1.4 API change

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- src/modules/loaders/png/evas_image_load_png.c.orig	2007-10-28 10:35:13.000000000 +0000
+++ src/modules/loaders/png/evas_image_load_png.c	2010-04-01 06:33:52.000000000 +0000
@@ -44,7 +44,7 @@
 	fclose(f);
 	return 0;
      }
-   if (!png_check_sig(buf, PNG_BYTES_TO_CHECK))
+   if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK))
      {
 	fclose(f);
 	return 0;
@@ -121,7 +121,7 @@
 
    /* if we havent read the header before, set the header data */
    fread(buf, 1, PNG_BYTES_TO_CHECK, f);
-   if (!png_check_sig(buf, PNG_BYTES_TO_CHECK))
+   if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK))
      {
 	fclose(f);
 	return 0;


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list