From: | "Alexis Ballier (aballier)" <aballier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-plugins/caps-plugins/files: caps-plugins-0.4.5-double-free-corruption.patch |
Date: | Tue, 27 Nov 2012 00:05:22 |
Message-Id: | 20121127000449.A350D20C9F@flycatcher.gentoo.org |
1 | aballier 12/11/27 00:04:49 |
2 | |
3 | Added: caps-plugins-0.4.5-double-free-corruption.patch |
4 | Log: |
5 | Fix double free by Vinycius Maia, bug #418241 |
6 | |
7 | (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 160F534A) |
8 | |
9 | Revision Changes Path |
10 | 1.1 media-plugins/caps-plugins/files/caps-plugins-0.4.5-double-free-corruption.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/caps-plugins/files/caps-plugins-0.4.5-double-free-corruption.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/caps-plugins/files/caps-plugins-0.4.5-double-free-corruption.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: caps-plugins-0.4.5-double-free-corruption.patch |
16 | =================================================================== |
17 | https://bugs.gentoo.org/show_bug.cgi?id=418241 |
18 | |
19 | --- interface.cc.orig 2012-08-11 07:35:45.723235289 -0300 |
20 | +++ interface.cc 2012-08-11 07:36:46.656565620 -0300 |
21 | @@ -128,8 +128,10 @@ |
22 | __attribute__ ((destructor)) |
23 | void _fini() |
24 | { |
25 | - for (ulong i = 0; i < N; ++i) |
26 | + for (ulong i = 0; i < N; ++i) { |
27 | delete descriptors[i]; |
28 | + descriptors[i] = NULL; |
29 | + } |
30 | } |
31 | |
32 | /* /////////////////////////////////////////////////////////////////////// */ |