diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-03-25 23:33:46 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-03-25 23:33:46 +0000 |
commit | 95aad47301ea8b47b657b1b19f391ba58a07bf91 (patch) | |
tree | ed67206788df799441183d8622e0891160ace994 /main/perl/CVE-2011-2939.patch | |
parent | c9ad03fbe8eeea5ffbc8ff81d4a0131a8fd15171 (diff) |
main/perl: security upgrade to 5.12.5 (CVE-2012-5195)
fixes #1638
Diffstat (limited to 'main/perl/CVE-2011-2939.patch')
-rw-r--r-- | main/perl/CVE-2011-2939.patch | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/main/perl/CVE-2011-2939.patch b/main/perl/CVE-2011-2939.patch deleted file mode 100644 index 7b5068d473c..00000000000 --- a/main/perl/CVE-2011-2939.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/cpan/Encode/Unicode/Unicode.xs b/cpan/Encode/Unicode/Unicode.xs -index 16f4cd1..039f155 100644 ---- a/cpan/Encode/Unicode/Unicode.xs -+++ b/cpan/Encode/Unicode/Unicode.xs -@@ -256,7 +256,10 @@ CODE: - This prevents allocating too much in the rogue case of a large - input consisting initially of long sequence uft8-byte unicode - chars followed by single utf8-byte chars. */ -- STRLEN remaining = (e - s)/usize; -+ /* +1 -+ fixes Unicode.xs!decode_xs n-byte heap-overflow -+ */ -+ STRLEN remaining = (e - s)/usize + 1; /* +1 to avoid the leak */ - STRLEN max_alloc = remaining + (8*1024*1024); - STRLEN est_alloc = remaining * UTF8_MAXLEN; - STRLEN newlen = SvLEN(result) + /* min(max_alloc, est_alloc) */ |