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