qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cliffjan...@apache.org
Subject qpid-proton git commit: PROTON-742: Windows SChannel buffer copy error: fix length
Date Thu, 13 Nov 2014 23:51:40 GMT
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 <cliffjansen@apache.org>
Authored: Thu Nov 13 15:45:17 2014 -0800
Committer: Clifford Jansen <cliffjansen@apache.org>
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


Mime
View raw message