summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-10-06 22:57:42 +0000
committerMike Frysinger <vapier@gentoo.org>2007-10-06 22:57:42 +0000
commit093ca5979c0562a4a706de540b3952d1498f0022 (patch)
tree16c6a4fea7e58becaa7c85349d3fb2f16cc62425 /media-libs/libpng/files
parentold (diff)
downloadhistorical-093ca5979c0562a4a706de540b3952d1498f0022.tar.gz
historical-093ca5979c0562a4a706de540b3952d1498f0022.tar.bz2
historical-093ca5979c0562a4a706de540b3952d1498f0022.zip
Update the memory corruption fix some more #194864 by Peter Henriksson.
Package-Manager: portage-2.1.3.11
Diffstat (limited to 'media-libs/libpng/files')
-rw-r--r--media-libs/libpng/files/digest-libpng-1.2.21-r26
-rw-r--r--media-libs/libpng/files/libpng-1.2.21-off-by-one.patch5
2 files changed, 9 insertions, 2 deletions
diff --git a/media-libs/libpng/files/digest-libpng-1.2.21-r2 b/media-libs/libpng/files/digest-libpng-1.2.21-r2
new file mode 100644
index 000000000000..5ef3058d09bf
--- /dev/null
+++ b/media-libs/libpng/files/digest-libpng-1.2.21-r2
@@ -0,0 +1,6 @@
+MD5 b0cda5e10e8165e5f151e674e1a67983 libpng-1.2.21.tar.bz2 614352
+RMD160 2738cb7cebe19184a0ffefe31c49e570b0791049 libpng-1.2.21.tar.bz2 614352
+SHA256 3b4f186e5dd1e683178d58d45db16f4fd9203f6518037ff28b4505ec35246953 libpng-1.2.21.tar.bz2 614352
+MD5 1518ec4b873f2c61a7d32ad867b67b17 libpng-manual.txt 128284
+RMD160 f019974f931327e6d9d332d306e07dce71ff031b libpng-manual.txt 128284
+SHA256 0cc3a25643024807672e5df255332cb63c902cea333246f4a5ab48c682c3297a libpng-manual.txt 128284
diff --git a/media-libs/libpng/files/libpng-1.2.21-off-by-one.patch b/media-libs/libpng/files/libpng-1.2.21-off-by-one.patch
index 2a10e1b20e1d..39a9534c24c4 100644
--- a/media-libs/libpng/files/libpng-1.2.21-off-by-one.patch
+++ b/media-libs/libpng/files/libpng-1.2.21-off-by-one.patch
@@ -2,12 +2,13 @@ http://bugs.gentoo.org/194864
http://sourceforge.net/mailarchive/forum.php?thread_name=47067C84.7010205%40playstation.sony.com&forum_name=png-mng-implement
--- pngset.c
+++ pngset.c
-@@ -690,7 +690,7 @@
+@@ -690,7 +690,8 @@
png_warning(png_ptr, "Insufficient memory to process iCCP chunk.");
return;
}
- png_strncpy(new_iccp_name, name, png_strlen(new_iccp_name)+1);
-+ png_strncpy(new_iccp_name, name, png_strlen(new_iccp_name));
++ png_strncpy(new_iccp_name, name, png_strlen(name));
++ new_iccp_name[png_strlen(name)+1]=0;
new_iccp_profile = (png_charp)png_malloc_warn(png_ptr, proflen);
if (new_iccp_profile == NULL)
{