• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2
3# Informational
4# Bang on RTP by
5#   1) giving an evil payload (with $)
6#   2) Giving evil content (SDP starting with $)
7#   3) packing rtp after headers, after content, and at the start
8<info>
9<keywords>
10RTSP
11RTP
12</keywords>
13</info>
14
15# Server-side
16<reply>
17<data1>
18RTSP/1.0 200 OK
19Server: RTSPD/libcurl-test
20Session: asdf
21CSeq: 1
22
23</data1>
24
25<data2>
26RTSP/1.0 200 OK
27Server: RTSPD/libcurl-test
28CSeq: 2
29Session: asdf
30
31</data2>
32
33<data3>
34RTSP/1.0 200 OK
35Server: RTSPD/libcurl-test
36Cseq: 3
37Content-Length: 4
38Content-Type: fake/evil
39
40$99
41</data3>
42
43<data4>
44RTSP/1.0 200 OK
45Server: RTSPD/libcurl-test
46Session: asdf
47CSeq: 4
48
49</data4>
50
51<servercmd>
52rtp: part 2 channel 1 size 10
53rtp: part 2 channel 0 size 500
54rtp: part 2 channel 0 size 196
55rtp: part 2 channel 0 size 124
56rtp: part 2 channel 0 size 824
57rtp: part 3 channel 1 size 10
58rtp: part 3 channel 0 size 50
59rtp: part 4 channel 0 size 798
60rtp: part 4 channel 0 size 42
61rtp: part 4 channel 1 size 30
62rtp: part 4 channel 0 size 2048
63rtp: part 4 channel 0 size 85
64rtp: part 4 channel 1 size 24
65</servercmd>
66</reply>
67
68# Client-Side
69<client>
70<server>
71rtsp
72</server>
73<tool>
74lib571
75</tool>
76
77<name>
78RTSP RTP Interleaving Test
79</name>
80<command>
81rtsp://%HOSTIP:%RTSPPORT/571 log/protofile571.txt
82</command>
83</client>
84
85<verify>
86<stdout>
87RTP: message size 10, channel 1
88RTP: message size 500, channel 0
89RTP: message size 196, channel 0
90RTP: message size 124, channel 0
91RTP: message size 824, channel 0
92RTP: message size 10, channel 1
93RTP: message size 50, channel 0
94RTP: message size 798, channel 0
95RTP: message size 42, channel 0
96RTP: message size 30, channel 1
97RTP: message size 2048, channel 0
98RTP: message size 85, channel 0
99RTP: message size 24, channel 1
100</stdout>
101
102<file name="log/protofile571.txt">
103$99
104</file>
105</verify>
106
107</testcase>
108