Commit 68844468 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Added test cases for client disconnect while parsing a

read_range_list.
parent 63f3f7f9
......@@ -433,6 +433,58 @@ set tests {
{"Try to give an insanely large greeting (A47114711H...)"
{"A47114711Hxyzzy"}}
{"Disconnect parsing a read-range array, in length."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 110 1 2"}}
{"Disconnect parsing a read-range array, after length."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 110 1 2 "}}
{"Disconnect parsing a read-range array, after \{."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 110 1 2 \{"}}
{"Disconnect parsing a read-range array, after \{."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 110 1 2 \{ "}}
{"Disconnect parsing a read-range array, in first number of first pair."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 110 1 2 \{ 1"}}
{"Disconnect parsing a read-range array, between numbers of first pair."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 110 1 2 \{ 1 "}}
{"Disconnect parsing a read-range array, in second number of first pair."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 110 1 2 \{ 1 2"}}
{"Disconnect parsing a read-range array, between first pairs."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 110 1 2 \{ 1 2 "}}
{"Disconnect parsing a read-range array, before \}."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 110 1 2 \{ 1 2 4 4 "}}
{"Disconnect parsing a read-range array, overly long, after \{."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 110 1 6 \{ "}}
{"Disconnect parsing a read-range array, overly long, first half."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 110 1 6 \{ 1 1 3 3 5 "}}
{"Disconnect parsing a read-range array, overly long, second half."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 110 1 6 \{ 1 1 3 3 5 5 7 7 9 9 11 "}}
{"Disconnect parsing a read-range array, overly long, before \}."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 110 1 6 \{ 1 1 3 3 5 5 7 7 9 9 11 11 "}}
{"Disconnect parsing a c_local_text_no_p array, overly long, after \{."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 27 5 6 \{ " "%% LysKOM protocol error."}}
......@@ -472,6 +524,7 @@ Max conference name length: 20
Max mark_as_read chunks: 4
Max aux_item length: 10
Max links per text: 4
Max read_ranges per call: 5
"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment