Skip to content
Snippets Groups Projects
Commit 52eb4c81 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

sdp: media type must be a token

parent e6b36ddc
No related branches found
No related tags found
1 merge request!872SDP: validate tokens
Pipeline #157217 passed with stages
in 20 minutes and 19 seconds
......@@ -221,6 +221,10 @@ bad:
if (unlikely(m->type == NULL || m->proto == NULL || m->format == NULL))
vlc_sdp_media_free(&m);
if (!vlc_sdp_is_token(m->type)) {
vlc_sdp_media_free(&m);
errno = EINVAL;
}
return m;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment