From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Kweze-0000to-AZ for garchives@archives.gentoo.org; Sun, 02 Nov 2008 15:35:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 49CEBE01EE; Sun, 2 Nov 2008 15:35:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1F4AEE01EE for ; Sun, 2 Nov 2008 15:35:58 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 531BC6429A for ; Sun, 2 Nov 2008 15:35:56 +0000 (UTC) Received: from loki_val by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1Kwezb-0006Sp-U1 for gentoo-commits@lists.gentoo.org; Sun, 02 Nov 2008 15:35:55 +0000 From: "Peter Alfredsen (loki_val)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, loki_val@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in net-libs/libtorrent/files: libtorrent-0.12.3-fix-fill_read_buffer-overflow.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: libtorrent-0.12.3-fix-fill_read_buffer-overflow.patch X-VCS-Directories: net-libs/libtorrent/files X-VCS-Committer: loki_val X-VCS-Committer-Name: Peter Alfredsen Content-Type: text/plain; charset=utf8 Message-Id: Sender: Peter Alfredsen Date: Sun, 02 Nov 2008 15:35:55 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: b5112b76-48aa-4cfd-b0b6-18b861617a11 X-Archives-Hash: f5dfe80c12f0c5c1ece84d18ddb8839e loki_val 08/11/02 15:35:55 Added: =20 libtorrent-0.12.3-fix-fill_read_buffer-overflow.p= atch Log: Fix 'Handshake buffer overflows', upstream ticket 1337: http://libtorre= nt.rakshasa.no/ticket/1337 (Portage version: 2.2_rc13/cvs/Linux 2.6.27 x86_64) Revision Changes Path 1.1 net-libs/libtorrent/files/libtorrent-0.12.3-fix-fill= _read_buffer-overflow.patch file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/libtorren= t/files/libtorrent-0.12.3-fix-fill_read_buffer-overflow.patch?rev=3D1.1&v= iew=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/libtorren= t/files/libtorrent-0.12.3-fix-fill_read_buffer-overflow.patch?rev=3D1.1&c= ontent-type=3Dtext/plain Index: libtorrent-0.12.3-fix-fill_read_buffer-overflow.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # Fixes a crash with fill_read_buffer(...) Buffer overflow" if peer sends # both encryption pads and their total size does not allow the subsequent # bitfield/protocol message to be received correctly. Ticket #1337. Index: libtorrent/src/protocol/handshake.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- libtorrent/src/protocol/handshake.h (revision 1073) +++ libtorrent/src/protocol/handshake.h (working copy) @@ -66,7 +66,7 @@ static const uint32_t enc_pad_size =3D 512; static const uint32_t enc_pad_read_size =3D 96 + enc_pad_size + 20; =20 - static const uint32_t buffer_size =3D enc_pad_read_size + 20 + enc_neg= otiation_size + enc_pad_size + 2 + handshake_size; + static const uint32_t buffer_size =3D enc_pad_read_size + 20 + enc_neg= otiation_size + enc_pad_size + 2 + handshake_size + 5; =20 typedef ProtocolBuffer Buffer; =20