Return-Path: X-Original-To: apmail-qpid-commits-archive@www.apache.org Delivered-To: apmail-qpid-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2D53B1029E for ; Thu, 13 Nov 2014 23:51:41 +0000 (UTC) Received: (qmail 20436 invoked by uid 500); 13 Nov 2014 23:51:41 -0000 Delivered-To: apmail-qpid-commits-archive@qpid.apache.org Received: (qmail 20408 invoked by uid 500); 13 Nov 2014 23:51:41 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 20399 invoked by uid 99); 13 Nov 2014 23:51:41 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Nov 2014 23:51:41 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id D070393A2A6; Thu, 13 Nov 2014 23:51:40 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cliffjansen@apache.org To: commits@qpid.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: qpid-proton git commit: PROTON-742: Windows SChannel buffer copy error: fix length Date: Thu, 13 Nov 2014 23:51:40 +0000 (UTC) Repository: qpid-proton Updated Branches: refs/heads/master cccd05067 -> c5c1879fd PROTON-742: Windows SChannel buffer copy error: fix length Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/c5c1879f Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/c5c1879f Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/c5c1879f Branch: refs/heads/master Commit: c5c1879fd7c1c762a929e25d8dc7e21ea89b63dc Parents: cccd050 Author: Clifford Jansen Authored: Thu Nov 13 15:45:17 2014 -0800 Committer: Clifford Jansen Committed: Thu Nov 13 15:45:17 2014 -0800 ---------------------------------------------------------------------- proton-c/src/windows/schannel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/c5c1879f/proton-c/src/windows/schannel.c ---------------------------------------------------------------------- diff --git a/proton-c/src/windows/schannel.c b/proton-c/src/windows/schannel.c index abf4b85..9437582 100644 --- a/proton-c/src/windows/schannel.c +++ b/proton-c/src/windows/schannel.c @@ -917,7 +917,7 @@ static void app_inbytes_progress(pn_ssl_t *ssl, size_t minimum) assert(ssl->app_inbytes.size <= ib2.size); size_t consumed = ib2.size - ssl->app_inbytes.size; if (consumed > 0) { - memmove((void *)ib2.start, ib2.start + consumed, consumed); + memmove((void *)ib2.start, ib2.start + consumed, ssl->app_inbytes.size); pn_buffer_trim(ssl->inbuf2, 0, consumed); } if (!pn_buffer_available(ssl->inbuf2)) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org For additional commands, e-mail: commits-help@qpid.apache.org