qpid-broker-j git commit: QPID-7817: [WebSocket] Fix defect in array offset handling

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

qpid-broker-j git commit: QPID-7817: [WebSocket] Fix defect in array offset handling

kwall
Repository: qpid-broker-j
Updated Branches:
  refs/heads/master 19d6b838e -> 739164c36


QPID-7817: [WebSocket] Fix defect in array offset handling


Project: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/commit/739164c3
Tree: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/tree/739164c3
Diff: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/diff/739164c3

Branch: refs/heads/master
Commit: 739164c36d089c7ec7ac23d23113d3abcd34074e
Parents: 19d6b83
Author: Keith Wall <[hidden email]>
Authored: Tue Jun 13 18:13:50 2017 +0100
Committer: Keith Wall <[hidden email]>
Committed: Tue Jun 13 18:14:04 2017 +0100

----------------------------------------------------------------------
 .../qpid/server/transport/websocket/WebSocketProvider.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-broker-j/blob/739164c3/broker-plugins/websocket/src/main/java/org/apache/qpid/server/transport/websocket/WebSocketProvider.java
----------------------------------------------------------------------
diff --git a/broker-plugins/websocket/src/main/java/org/apache/qpid/server/transport/websocket/WebSocketProvider.java b/broker-plugins/websocket/src/main/java/org/apache/qpid/server/transport/websocket/WebSocketProvider.java
index ba66d1e..82ee3eb 100644
--- a/broker-plugins/websocket/src/main/java/org/apache/qpid/server/transport/websocket/WebSocketProvider.java
+++ b/broker-plugins/websocket/src/main/java/org/apache/qpid/server/transport/websocket/WebSocketProvider.java
@@ -416,8 +416,8 @@ class WebSocketProvider implements AcceptingTransport
                     {
                         int chunkLen = Math.min(remaining, _netInputBuffer.remaining());
                         _netInputBuffer.put(payload, offset, chunkLen);
-                        remaining =- chunkLen;
-                        offset =+ chunkLen;
+                        remaining -= chunkLen;
+                        offset += chunkLen;
 
                         _netInputBuffer.flip();
                         _protocolEngine.received(_netInputBuffer);


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]