diff options
author | Daniel Ahlberg <aliz@gentoo.org> | 2003-01-08 14:26:45 +0000 |
---|---|---|
committer | Daniel Ahlberg <aliz@gentoo.org> | 2003-01-08 14:26:45 +0000 |
commit | 23af1b551896dabfb6d3f7f713ffcdd4359ed93f (patch) | |
tree | 6e5e01eb56fa431fcce43173b4341e27b67c0f92 /media-libs/libpng/files/libpng-1.2.5-gentoo.diff | |
parent | enable on alpha (diff) | |
download | historical-23af1b551896dabfb6d3f7f713ffcdd4359ed93f.tar.gz historical-23af1b551896dabfb6d3f7f713ffcdd4359ed93f.tar.bz2 historical-23af1b551896dabfb6d3f7f713ffcdd4359ed93f.zip |
Security update
Diffstat (limited to 'media-libs/libpng/files/libpng-1.2.5-gentoo.diff')
-rw-r--r-- | media-libs/libpng/files/libpng-1.2.5-gentoo.diff | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/media-libs/libpng/files/libpng-1.2.5-gentoo.diff b/media-libs/libpng/files/libpng-1.2.5-gentoo.diff new file mode 100644 index 000000000000..755cd8a79fa6 --- /dev/null +++ b/media-libs/libpng/files/libpng-1.2.5-gentoo.diff @@ -0,0 +1,42 @@ +--- libpng3-1.2.5.orig/pngrtran.c ++++ libpng3-1.2.5/pngrtran.c +@@ -1930,7 +1930,7 @@ + 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 dp = sp + (png_size_t)row_width ; + for (i = 1; i < row_width; i++) + { + *(--dp) = lo_filler; +@@ -1947,7 +1947,7 @@ + else + { + png_bytep sp = row + (png_size_t)row_width * 3; +- png_bytep dp = sp + (png_size_t)row_width; ++ png_bytep dp = sp + (png_size_t)row_width ; + for (i = 0; i < row_width; i++) + { + *(--dp) = *(--sp); +@@ -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); |