Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 This is a collection of corpora for various WebRTC fuzzers. To use | |
| 2 them, the gn targets define seed_corpus=$corpus_dir, which causes the | |
| 3 ClusterFuzz upload bot to bundle $corpus_dir and upload it. | |
| 4 | |
| 5 The format is simple: one file per test case. Specific notes are | |
| 6 included below. | |
| 7 | |
| 8 ### SDP ### | |
| 9 This corpus is assembled manually from the following sources: | |
|
pbos-webrtc
2016/06/21 12:22:10
Put some kind of "initially", here and below to in
katrielc1
2016/06/22 09:29:31
Done.
| |
| 10 | |
| 11 - curl --silent https://www.ietf.org/rfc/rfc4317.txt | grep '^[ a-z]*=[^=]*$' | sed 's/^[[:space:]]*//' | awk -v RS='(^|\n)v=' '/./ {print "v="$0 > NR".sdp"}' | |
| 12 - all the SDPs used in the parser unit tests | |
| 13 - some manually gathered SDPs from Firefox and Opera | |
| 14 | |
| 15 The SDP tokens come from: | |
| 16 | |
| 17 - grep "^static const " webrtc/api/webrtcsdp.cc | cut -d'=' -f2 | cut -d ';' - f1 | tr -d '"' | tr -d "'" | tr -d ' ' | sort -u | grep -v '^(\n|\r|\r\n)$|^$' | sed -e 's/^/"/' -e 's/$/"/' | tail -n +2 | |
| 18 | |
| 19 ### STUN ### | |
| 20 This corpus comprises the STUN packets used in the unit tests. | |
| 21 | |
| 22 ### RT(C)P ### | |
| 23 The RT(C)P corpora are assembled manually from unittests. RTCP was | |
| 24 minimised first. | |
| 25 | |
| 26 There is also rt(c?)p-corpus-with-extra-byte, in which each sample is | |
| 27 prefixed by the byte 0xff. Some of the rtp fuzzers need to decide | |
| 28 which header extensions to enable, and the first byte of the fuzz data | |
| 29 is used for this. | |
| OLD | NEW |