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:
parent
7d67f9afef
commit
9a05677d7c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251730
11
graphics/ruby-libpng/files/patch-reader.c
Normal file
11
graphics/ruby-libpng/files/patch-reader.c
Normal 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);
|
20
graphics/ruby-libpng/files/patch-writer.c
Normal file
20
graphics/ruby-libpng/files/patch-writer.c
Normal 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);
|
||||
|
Loading…
Reference in New Issue
Block a user