From: | "Justin Lecher (jlec)" <jlec@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-pda/gtkpod/files: gtkpod-2.1.2-bffr-overflow.patch |
Date: | Fri, 02 Nov 2012 11:37:29 |
Message-Id: | 20121102113711.66DE421601@flycatcher.gentoo.org |
1 | jlec 12/11/02 11:37:11 |
2 | |
3 | Added: gtkpod-2.1.2-bffr-overflow.patch |
4 | Log: |
5 | app-pda/gtkpod: Fid for buffer overflow, #434220 |
6 | |
7 | (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-pda/gtkpod/files/gtkpod-2.1.2-bffr-overflow.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-pda/gtkpod/files/gtkpod-2.1.2-bffr-overflow.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-pda/gtkpod/files/gtkpod-2.1.2-bffr-overflow.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: gtkpod-2.1.2-bffr-overflow.patch |
16 | =================================================================== |
17 | libs/atomic-parsley/AtomicParsley.cpp | 2 +- |
18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
19 | |
20 | diff --git a/libs/atomic-parsley/AtomicParsley.cpp b/libs/atomic-parsley/AtomicParsley.cpp |
21 | index 8603885..9190df3 100644 |
22 | --- a/libs/atomic-parsley/AtomicParsley.cpp |
23 | +++ b/libs/atomic-parsley/AtomicParsley.cpp |
24 | @@ -1887,7 +1887,7 @@ char* APar_ExtractDataAtom(int this_atom_number) { |
25 | |
26 | } |
27 | else { //purl & egid would end up here too, but Apple switched it to a text string (0x00), so gets taken care above explicitly |
28 | - char* result = (char*) malloc(sizeof(char) * 6); |
29 | + char* result = (char*) malloc(sizeof(char) * 6 + 1); |
30 | sprintf(result, "hex 0x"); |
31 | |
32 | for (int hexx = 1; hexx <= (int) (thisAtom->AtomicLength - atom_header_size); ++hexx) { |