diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2010-03-29 14:51:27 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2010-03-29 14:51:27 +0000 |
commit | 9a05677d7c926c26691518b2c3c1e30a9aff11d7 (patch) | |
tree | 7b332568ad667126c527a45dc1d4cdeb03a5a767 /graphics/ruby-libpng | |
parent | 7d67f9afefde985e54ca800145e8b0b14efdb1f8 (diff) | |
download | ports-9a05677d7c926c26691518b2c3c1e30a9aff11d7.tar.gz ports-9a05677d7c926c26691518b2c3c1e30a9aff11d7.zip |
Notes
Diffstat (limited to 'graphics/ruby-libpng')
-rw-r--r-- | graphics/ruby-libpng/files/patch-reader.c | 11 | ||||
-rw-r--r-- | graphics/ruby-libpng/files/patch-writer.c | 20 |
2 files changed, 31 insertions, 0 deletions
diff --git a/graphics/ruby-libpng/files/patch-reader.c b/graphics/ruby-libpng/files/patch-reader.c new file mode 100644 index 000000000000..09e5d6448cfb --- /dev/null +++ b/graphics/ruby-libpng/files/patch-reader.c @@ -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);
diff --git a/graphics/ruby-libpng/files/patch-writer.c b/graphics/ruby-libpng/files/patch-writer.c new file mode 100644 index 000000000000..5f62933801da --- /dev/null +++ b/graphics/ruby-libpng/files/patch-writer.c @@ -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);
+
|