summaryrefslogtreecommitdiff
path: root/debian/patches/0049-Leak-of-struct-addrinfo-in-xmlNanoFTPConnect.patch
diff options
context:
space:
mode:
authorAron Xu <aron@debian.org>2015-09-21 22:55:08 +0800
committerAron Xu <aron@debian.org>2015-09-21 22:55:08 +0800
commitd548c999ade382febb424b26743b3c4d63159ae0 (patch)
tree232c9c894b45099f211728742569111738b17e16 /debian/patches/0049-Leak-of-struct-addrinfo-in-xmlNanoFTPConnect.patch
parentd837811e969fac31afdf39c00ba579b33f6adeb6 (diff)
downloadlibxml2-d548c999ade382febb424b26743b3c4d63159ae0.tar.gz
Revert "Restore all patches available in 2.9.1+dfsg1-5 in stretch, ensuring CVE-2014-3660 is fixed too."
This reverts commit 37f590756a23e167808f76f1389c36f0a2d39f11.
Diffstat (limited to 'debian/patches/0049-Leak-of-struct-addrinfo-in-xmlNanoFTPConnect.patch')
-rw-r--r--debian/patches/0049-Leak-of-struct-addrinfo-in-xmlNanoFTPConnect.patch25
1 files changed, 0 insertions, 25 deletions
diff --git a/debian/patches/0049-Leak-of-struct-addrinfo-in-xmlNanoFTPConnect.patch b/debian/patches/0049-Leak-of-struct-addrinfo-in-xmlNanoFTPConnect.patch
deleted file mode 100644
index 45a4f15..0000000
--- a/debian/patches/0049-Leak-of-struct-addrinfo-in-xmlNanoFTPConnect.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From: Gaurav Gupta <g.gupta@samsung.com>
-Date: Mon, 6 Oct 2014 19:28:29 +0800
-Subject: Leak of struct addrinfo in xmlNanoFTPConnect()
-
-For https://bugzilla.gnome.org/show_bug.cgi?id=732352
-
-in case of error condition in IPv6 support, the early return here
-doesn't call freeaddrinfo(result), thus leaking memory.
----
- nanoftp.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/nanoftp.c b/nanoftp.c
-index 077bfe2..010e0b1 100644
---- a/nanoftp.c
-+++ b/nanoftp.c
-@@ -908,6 +908,8 @@ xmlNanoFTPConnect(void *ctx) {
- return (-1);
- }
- if (tmp->ai_addrlen > sizeof(ctxt->ftpAddr)) {
-+ if (result)
-+ freeaddrinfo (result);
- __xmlIOErr(XML_FROM_FTP, 0, "gethostbyname address mismatch");
- return (-1);
- }