aboutsummaryrefslogtreecommitdiff
path: root/graphics/png/files/patch-pngrutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/png/files/patch-pngrutil.c')
-rw-r--r--graphics/png/files/patch-pngrutil.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/graphics/png/files/patch-pngrutil.c b/graphics/png/files/patch-pngrutil.c
deleted file mode 100644
index 677cbfd3919b..000000000000
--- a/graphics/png/files/patch-pngrutil.c
+++ /dev/null
@@ -1,20 +0,0 @@
----pngrutil.c.orig 2012/02/10 19:43:42 121491
-+++ pngrutil.c 2012/02/10 19:45:46 121492
-@@ -363,8 +363,15 @@
- {
- /* Success (maybe) - really uncompress the chunk. */
- png_size_t new_size = 0;
-- png_charp text = png_malloc_warn(png_ptr,
-- prefix_size + expanded_size + 1);
-+ png_charp text = NULL;
-+ /* Need to check for both truncation (64-bit platforms) and integer
-+ * overflow.
-+ */
-+ if (prefix_size + expanded_size > prefix_size &&
-+ prefix_size + expanded_size < 0xffffffffU)
-+ {
-+ text = png_malloc_warn(png_ptr, prefix_size + expanded_size + 1);
-+ }
-
- if (text != NULL)
- {