mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-05 19:15:12 +00:00
fuzz: extend fuzzing coverage (#2040)
Some notes: * libinjection: according to https://github.com/libinjection/libinjection/issues/44, it seems NULL characters are valid in the input string; * RTP: `rtp_get_stream_type()` is called only for RTP packets; if you want to tell RTP from RTCP you should use `is_rtp_or_rtcp()`; * TLS: unnecessary check; we already make the same check just above, at the beginning of the `while` loop
This commit is contained in:
parent
859d9ea3c3
commit
950f5cc4e3
18 changed files with 208 additions and 55 deletions
|
|
@ -62,7 +62,7 @@ u_int8_t rtp_get_stream_type(u_int8_t payloadType, ndpi_multimedia_flow_type *s_
|
|||
case 117: /* G.722 */
|
||||
case 118: /* Comfort Noise Wideband */
|
||||
*s_type = ndpi_multimedia_audio_flow;
|
||||
return(1 /* RTP */);
|
||||
return(1);
|
||||
|
||||
case 34: /* H.263 [MS-H26XPF] */
|
||||
case 121: /* RT Video */
|
||||
|
|
@ -70,14 +70,7 @@ u_int8_t rtp_get_stream_type(u_int8_t payloadType, ndpi_multimedia_flow_type *s_
|
|||
case 123: /* H.264 FEC [MS-H264PF] */
|
||||
case 127: /* x-data */
|
||||
*s_type = ndpi_multimedia_video_flow;
|
||||
return(1 /* RTP */);
|
||||
|
||||
case 200: /* RTCP PACKET SENDER */
|
||||
case 201: /* RTCP PACKET RECEIVER */
|
||||
case 202: /* RTCP Source Description */
|
||||
case 203: /* RTCP Bye */
|
||||
*s_type = ndpi_multimedia_unknown_flow;
|
||||
return(2 /* RTCP */);
|
||||
return(1);
|
||||
|
||||
default:
|
||||
*s_type = ndpi_multimedia_unknown_flow;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue