From: "Peter Alfredsen (loki_val)" <loki_val@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/libtorrent/files: libtorrent-0.12.3-fix-fill_read_buffer-overflow.patch
Date: Sun, 02 Nov 2008 15:35:55 +0000 [thread overview]
Message-ID: <E1Kwezb-0006Sp-U1@stork.gentoo.org> (raw)
loki_val 08/11/02 15:35:55
Added:
libtorrent-0.12.3-fix-fill_read_buffer-overflow.patch
Log:
Fix 'Handshake buffer overflows', upstream ticket 1337: http://libtorrent.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/libtorrent/files/libtorrent-0.12.3-fix-fill_read_buffer-overflow.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/libtorrent/files/libtorrent-0.12.3-fix-fill_read_buffer-overflow.patch?rev=1.1&content-type=text/plain
Index: libtorrent-0.12.3-fix-fill_read_buffer-overflow.patch
===================================================================
# 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
===================================================================
--- 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 = 512;
static const uint32_t enc_pad_read_size = 96 + enc_pad_size + 20;
- static const uint32_t buffer_size = enc_pad_read_size + 20 + enc_negotiation_size + enc_pad_size + 2 + handshake_size;
+ static const uint32_t buffer_size = enc_pad_read_size + 20 + enc_negotiation_size + enc_pad_size + 2 + handshake_size + 5;
typedef ProtocolBuffer<buffer_size> Buffer;
reply other threads:[~2008-11-02 15:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1Kwezb-0006Sp-U1@stork.gentoo.org \
--to=loki_val@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox