]> git.pld-linux.org Git - packages/crossmingw32-libpng.git/commitdiff
- fix from Debian for bug in handling of 16-bit depth images libpng-1_2_5-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 9 Jan 2003 15:31:53 +0000 (15:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  that could cause security problems

Changed files:
    libpng-16bit-overflow.patch -> 1.1

libpng-16bit-overflow.patch [new file with mode: 0644]

diff --git a/libpng-16bit-overflow.patch b/libpng-16bit-overflow.patch
new file mode 100644 (file)
index 0000000..ed96b20
--- /dev/null
@@ -0,0 +1,24 @@
+--- libpng-1.2.5.orig/pngrtran.c
++++ libpng-1.2.5/pngrtran.c
+@@ -1965,8 +1965,8 @@
+          /* This changes the data from RRGGBB to RRGGBBXX */
+          if (flags & PNG_FLAG_FILLER_AFTER)
+          {
+-            png_bytep sp = row + (png_size_t)row_width * 3;
+-            png_bytep dp = sp  + (png_size_t)row_width;
++            png_bytep sp = row + (png_size_t)row_width * 6;
++            png_bytep dp = sp  + (png_size_t)row_width * 2;
+             for (i = 1; i < row_width; i++)
+             {
+                *(--dp) = hi_filler;
+@@ -1987,8 +1987,8 @@
+          /* This changes the data from RRGGBB to XXRRGGBB */
+          else
+          {
+-            png_bytep sp = row + (png_size_t)row_width * 3;
+-            png_bytep dp = sp  + (png_size_t)row_width;
++            png_bytep sp = row + (png_size_t)row_width * 6;
++            png_bytep dp = sp  + (png_size_t)row_width * 2;
+             for (i = 0; i < row_width; i++)
+             {
+                *(--dp) = *(--sp);
This page took 0.227213 seconds and 4 git commands to generate.