Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-1.9.git;a=commitdiff;h=4f066d6ede6c8d72e99f16bce825f91a085c1b88
commit 4f066d6ede6c8d72e99f16bce825f91a085c1b88 Author: kikadf <[email protected]> Date: Thu Feb 13 09:49:28 2014 +0100 libgadu-1.11.2-2arcturus1-x86_64 * Fix CVE-2013-6487 diff --git a/source/lib/libgadu/CVE-2013-6487.patch b/source/lib/libgadu/CVE-2013-6487.patch new file mode 100644 index 0000000..5c4c75b --- /dev/null +++ b/source/lib/libgadu/CVE-2013-6487.patch @@ -0,0 +1,38 @@ +From 9eb5dfe7bb8c0e07ec3a5eaf5ffdbb20a4fb0d4c Mon Sep 17 00:00:00 2001 +From: Tomasz Wasilczyk <[email protected]> +Date: Wed, 29 Jan 2014 13:52:49 +0100 +Subject: [PATCH 2/3] Fix CVE-2013-6487: a possible buffer overflow when + parsing HTTP response + +--- + src/http.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/src/http.c b/src/http.c +index 53fafeb..901289f 100644 +--- a/src/http.c ++++ b/src/http.c +@@ -43,6 +43,8 @@ + #include <string.h> + #include <unistd.h> + ++#define GG_HTTP_MAX_LENGTH 1000000000 ++ + /** + * Rozpoczyna poÅÄ czenie HTTP. + * +@@ -360,6 +362,11 @@ int gg_http_watch_fd(struct gg_http *h) + h->body_size = left; + } + ++ if (h->body_size > GG_HTTP_MAX_LENGTH) { ++ gg_debug(GG_DEBUG_MISC, "=> http, content-length too big\n"); ++ h->body_size = GG_HTTP_MAX_LENGTH; ++ } ++ + if (left > h->body_size) { + gg_debug(GG_DEBUG_MISC, "=> http, oversized reply (%d bytes needed, %d bytes left)\n", h->body_size, left); + h->body_size = left; +-- +1.8.5.3 + diff --git a/source/lib/libgadu/FrugalBuild b/source/lib/libgadu/FrugalBuild index 93c85ae..2ba8c1a 100644 --- a/source/lib/libgadu/FrugalBuild +++ b/source/lib/libgadu/FrugalBuild @@ -1,9 +1,11 @@ # Maintainer: DeX77 <[email protected]> # Compiling Time: 0.05 SBU +options+=('asneeded') + pkgname=libgadu pkgver=1.11.2 -pkgrel=1 +pkgrel=2arcturus1 pkgdesc="Gadu-Gadu protocol libraries" archs=('i686' 'x86_64' 'arm') groups=('lib') @@ -11,7 +13,12 @@ url="http://toxygen.net/libgadu/" license=('GPL') depends=('openssl>=1.0.0') up2date="Flasttar $url" -source=(http://toxygen.net/libgadu/files/$pkgname-$pkgver.tar.gz) +source=(http://github.com/wojtekka/libgadu/releases/download/$pkgver/$pkgname-$pkgver.tar.gz) sha1sums=('0e13836416b49212d5f17a74d8c2e72c5f915238') +# FSA fix *** +source=(${source[@]} CVE-2013-6487.patch) +sha1sums=(${sha1sums[@]} 'e82b2e13d5b19d0f69a365e79b11324efaa5c7c2') +# *********** + # optimization OK
_______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
