wslay - Case 6.3.2 : Pass - 1 ms @ 2012-01-09T14:45:56Z
Case Description
Send invalid UTF-8 text message in fragments of 1 octet, resulting in frames ending on positions which are not code point ends.
MESSAGE:
Îºá½¹ÏƒÎ¼Îµí €edited
cebae1bdb9cf83cebcceb5eda080656469746564
Case Expectation
The connection is failed immediately, since the payload is not valid UTF-8.
Case Outcome
Actual events match at least one expected.
Expected:
{'OK': []}
Observed:
[]
Case Closing Behavior
Connection was properly closed (OK)
GET / HTTP/1.1 User-Agent: AutobahnWebSocketsTestSuite/0.4.10 Host: localhost:9090 Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: 8bvIncRXSLcaSWPOXidIag== Sec-WebSocket-Version: 13
HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade Sec-WebSocket-Accept: p6m/aw3yLeHX1XbRewsBg6PZYZI=
Key | Value | Description |
isServer | False | True, iff I (the fuzzer) am a server, and the peer is a client. |
closedByMe | False | True, iff I have initiated closing handshake (that is, did send close first). |
failedByMe | False | True, iff I have failed the WS connection (i.e. due to protocol error). Failing can be either by initiating closing handshake or brutal drop TCP. |
droppedByMe | False | True, iff I dropped the TCP connection. |
wasClean | True | True, iff full WebSockets closing handshake was performed (close frame sent and received) _and_ the server dropped the TCP (which is its responsibility). |
wasNotCleanReason | None | When wasClean == False, the reason what happened. |
wasServerConnectionDropTimeout | False | When we are a client, and we expected the server to drop the TCP, but that didn't happen in time, this gets True. |
wasCloseHandshakeTimeout | False | When we initiated a closing handshake, but the peer did not respond in time, this gets True. |
localCloseCode | 1000 | The close code I sent in close frame (if any). |
localCloseReason | None | The close reason I sent in close frame (if any). |
remoteCloseCode | 1007 | The close code the peer sent me in close frame (if any). |
remoteCloseReason | None | The close reason the peer sent me in close frame (if any). |
Chop Size | Count | Octets |
4 | 1 | 4 |
129 | 1 | 129 |
Total | 2 | 133 |
Chop Size | Count | Octets |
6 | 1 | 6 |
7 | 20 | 140 |
8 | 1 | 8 |
201 | 1 | 201 |
Total | 23 | 355 |
Opcode | Count |
8 | 1 |
Total | 1 |
Opcode | Count |
0 | 20 |
1 | 1 |
8 | 1 |
Total | 22 |
000 TX OCTETS: 474554202f20485454502f312e310d0a557365722d4167656e743a204175746f6261686e576562536f636b65747354657374
53756974652f302e342e31300d0a486f73743a206c6f63616c686f73743a393039300d0a557067726164653a20776562736f
636b65740d0a436f6e6e656374696f6e3a20557067726164650d0a5365632d576562536f636b65742d4b65793a2038627649
6e635258534c63615357504f5869644961673d3d0d0a5365632d576562536f636b65742d56657273696f6e3a2031330d0a0d
0a
001 RX OCTETS: 485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a557067726164653a20776562736f636b
65740d0a436f6e6e656374696f6e3a20557067726164650d0a5365632d576562536f636b65742d4163636570743a2070366d
2f617733794c65485831586252657773426736505a595a493d0d0a0d0a
002 TX FRAME : OPCODE=1, FIN=False, RSV=0, MASK=100204c7, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
Î
003 TX OCTETS: 0181100204c7de
004 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=c09b7264, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
º
005 TX OCTETS: 0081c09b72647a
006 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=536f81d9, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
á
007 TX OCTETS: 0081536f81d9b2
008 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=24be68f0, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
½
009 TX OCTETS: 008124be68f099
010 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=09ff2ec9, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
¹
011 TX OCTETS: 008109ff2ec9b0
012 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=1ee52647, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
Ï
013 TX OCTETS: 00811ee52647d1
014 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=0ea9b318, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
ƒ
015 TX OCTETS: 00810ea9b3188d
016 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=00f2b1cb, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
Î
017 TX OCTETS: 008100f2b1cbce
018 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=69d33c1e, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
¼
019 TX OCTETS: 008169d33c1ed5
020 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=da170680, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
Î
021 TX OCTETS: 0081da17068014
022 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=757e571f, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
µ
023 TX OCTETS: 0081757e571fc0
024 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=58744d91, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
í
025 TX OCTETS: 008158744d91b5
026 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=92249d7a, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
027 TX OCTETS: 008192249d7a32
028 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=028fee28, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
€
029 TX OCTETS: 0081028fee2882
030 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=de903e3f, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
e
031 TX OCTETS: 0081de903e3fbb
032 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=24fa1a12, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
d
033 TX OCTETS: 008124fa1a1240
034 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=3a5a2c25, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
i
035 TX OCTETS: 00813a5a2c2553
036 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=051990f4, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
t
037 TX OCTETS: 0081051990f471
038 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=362d6dff, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
e
039 TX OCTETS: 0081362d6dff53
040 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=31d65fa1, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
d
041 TX OCTETS: 008131d65fa155
042 TX FRAME : OPCODE=0, FIN=True, RSV=0, MASK=2f6a0a19, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
043 TX OCTETS: 80802f6a0a19
044 FAIL CONNECTION AFTER 1.000000 sec
045 RX OCTETS: 880203ef
046 RX FRAME : OPCODE=8, FIN=True, RSV=0, MASKED=False, MASK=None
ï
047 TX FRAME : OPCODE=8, FIN=True, RSV=0, MASK=bc99a02b, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
è
048 TX OCTETS: 8882bc99a02bbf71
049 TCP DROPPED BY PEER