diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-10-06 14:05:07 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-10-06 14:05:07 +0000 |
commit | 8bbd7bb2e299d729712a78c74e2ecb4a83e20975 (patch) | |
tree | 53e62d1dca044bc686d5ad3f6e3211564d42f0ef /media-libs/libpng/files | |
parent | old (diff) | |
download | gentoo-2-8bbd7bb2e299d729712a78c74e2ecb4a83e20975.tar.gz gentoo-2-8bbd7bb2e299d729712a78c74e2ecb4a83e20975.tar.bz2 gentoo-2-8bbd7bb2e299d729712a78c74e2ecb4a83e20975.zip |
Fix from upstream for memory overflow #194864 by teidakankan and Peter Henriksson.
(Portage version: 2.1.3.11)
Diffstat (limited to 'media-libs/libpng/files')
-rw-r--r-- | media-libs/libpng/files/digest-libpng-1.2.21-r1 | 6 | ||||
-rw-r--r-- | media-libs/libpng/files/libpng-1.2.21-off-by-one.patch | 13 |
2 files changed, 19 insertions, 0 deletions
diff --git a/media-libs/libpng/files/digest-libpng-1.2.21-r1 b/media-libs/libpng/files/digest-libpng-1.2.21-r1 new file mode 100644 index 000000000000..5ef3058d09bf --- /dev/null +++ b/media-libs/libpng/files/digest-libpng-1.2.21-r1 @@ -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 new file mode 100644 index 000000000000..2a10e1b20e1d --- /dev/null +++ b/media-libs/libpng/files/libpng-1.2.21-off-by-one.patch @@ -0,0 +1,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 @@ + 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)); + new_iccp_profile = (png_charp)png_malloc_warn(png_ptr, proflen); + if (new_iccp_profile == NULL) + { |