Commit 89f05854 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix impossible out-of-bound strcmp

parent f953de14
......@@ -136,7 +136,8 @@ static int Open( vlc_object_t *p_this )
int i_bind_port, i_server_port = 0;
int fam = AF_UNSPEC, proto = IPPROTO_UDP, cscov = 8;
if (strlen (p_access->psz_access) >= 4)
if (strlen (p_access->psz_access) >= 3)
{
switch (p_access->psz_access[3])
{
case '4':
......@@ -149,6 +150,7 @@ static int Open( vlc_object_t *p_this )
}
if (strcmp (p_access->psz_access + 3, "lite") == 0)
proto = IPPROTO_UDPLITE;
}
if (strncmp (p_access->psz_access, "rtp", 3) == 0)
/* Checksum coverage: RTP header is AT LEAST 12 bytes
* in addition to UDP header (8 bytes) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment