From: | "Peter Alfredsen (loki_val)" <loki_val@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-libs/faad2/files: faad2-2.6.1-main-overflow.patch |
Date: | Tue, 23 Sep 2008 12:37:32 |
Message-Id: | E1Ki790-0006yM-2E@stork.gentoo.org |
1 | loki_val 08/09/23 12:37:30 |
2 | |
3 | Added: faad2-2.6.1-main-overflow.patch |
4 | Log: |
5 | Security bump w/ patch from bug 238445 |
6 | (Portage version: 2.2_rc8/cvs/Linux 2.6.25.8 i686) |
7 | |
8 | Revision Changes Path |
9 | 1.1 media-libs/faad2/files/faad2-2.6.1-main-overflow.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/faad2/files/faad2-2.6.1-main-overflow.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/faad2/files/faad2-2.6.1-main-overflow.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: faad2-2.6.1-main-overflow.patch |
15 | =================================================================== |
16 | Index: faad2/frontend/main.c |
17 | =================================================================== |
18 | --- faad2.orig/frontend/main.c |
19 | +++ faad2/frontend/main.c |
20 | @@ -916,6 +916,8 @@ int decodeMP4file(char *mp4file, char *s |
21 | sample_count = frameInfo.samples; |
22 | } else { |
23 | sample_count = (unsigned int)(dur * frameInfo.channels); |
24 | + if (sample_count > frameInfo.samples) |
25 | + sample_count = frameInfo.samples; |
26 | |
27 | if (!useAacLength && !initial && (sampleId < numSamples/2) && (sample_count != frameInfo.samples)) |
28 | { |