1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

- fix build for png-1.4.1

This commit is contained in:
Dirk Meyer 2010-03-29 14:51:27 +00:00
parent 7d67f9afef
commit 9a05677d7c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251730
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- reader.c.orig 2000-09-28 04:19:46.000000000 +0200
+++ reader.c 2010-03-29 16:43:24.000000000 +0200
@@ -64,7 +64,7 @@
{
VALUE proc;
- if(png_ptr == NULL || row_number > PNG_MAX_UINT)
+ if(png_ptr == NULL || row_number > PNG_UINT_31_MAX)
return;
proc = rb_iv_get(cReader, READ_STATUS_FN);

View File

@ -0,0 +1,20 @@
--- writer.c.orig 2000-09-28 04:22:32.000000000 +0200
+++ writer.c 2010-03-29 16:42:29.000000000 +0200
@@ -31,7 +31,7 @@
if (png_obj->info->valid & PNG_INFO_PLTE)
free(png_obj->info->palette);
if (png_obj->info->valid & PNG_INFO_tRNS)
- free(png_obj->info->trans);
+ free(png_obj->info->trans_alpha);
png_destroy_write_struct(&png_obj->obj, &png_obj->info);
free(png_obj);
@@ -67,7 +67,7 @@
{
VALUE proc;
- if(png_ptr == NULL || row_number > PNG_MAX_UINT || pass > 7) return;
+ if(png_ptr == NULL || row_number > PNG_UINT_31_MAX || pass > 7) return;
proc = rb_iv_get(cReader, WRITE_STATUS_FN);