diff options
author | Jeroen Roovers <jer@gentoo.org> | 2009-12-10 16:22:58 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2009-12-10 16:22:58 +0000 |
commit | 21690d24d2c75a9706f7a762885c13f76dfd5aa6 (patch) | |
tree | f858b0c75cd9e4caa4f62db5ac0952e824e676f7 /net-libs/libnet/files | |
parent | x86 stable, bug 292455 (diff) | |
download | gentoo-2-21690d24d2c75a9706f7a762885c13f76dfd5aa6.tar.gz gentoo-2-21690d24d2c75a9706f7a762885c13f76dfd5aa6.tar.bz2 gentoo-2-21690d24d2c75a9706f7a762885c13f76dfd5aa6.zip |
Apply Debian patch (bug #296417).
(Portage version: 2.2_rc57/cvs/Linux i686)
Diffstat (limited to 'net-libs/libnet/files')
-rw-r--r-- | net-libs/libnet/files/libnet-1.1.4-zero-pointers-after-free.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/net-libs/libnet/files/libnet-1.1.4-zero-pointers-after-free.patch b/net-libs/libnet/files/libnet-1.1.4-zero-pointers-after-free.patch new file mode 100644 index 000000000000..0fd81d7377f4 --- /dev/null +++ b/net-libs/libnet/files/libnet-1.1.4-zero-pointers-after-free.patch @@ -0,0 +1,32 @@ +http://ftp.de.debian.org/debian/pool/main/libn/libnet/libnet_1.1.4-2.diff.gz + + +NULLify pointers after free()ing them to avoid double free()s. +Index: libnet-1.1.4/src/libnet_if_addr.c +=================================================================== +--- libnet-1.1.4.orig/src/libnet_if_addr.c 2009-06-27 14:48:56.084093427 +0300 ++++ libnet-1.1.4/src/libnet_if_addr.c 2009-06-27 14:49:30.081249393 +0300 +@@ -240,6 +240,7 @@ + { + /* fix memory leak */ + free(al->device); ++ al->device = NULL; + } + if ((al->device = strdup(device)) == NULL) + { +@@ -406,6 +407,7 @@ + for (i = 0; i < c; i++) + { + free(al[i].device); ++ al[i].device = NULL; + } + return (1); + +@@ -413,6 +415,7 @@ + for (i = 0; i < c; i++) + { + free(al[i].device); ++ al[i].device = NULL; + } + return (-1); + } |