mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
fix possible crash
svn path=/icecast/trunk/icecast/; revision=13561
This commit is contained in:
parent
3910d1caf9
commit
bd266785ad
@ -176,7 +176,7 @@ static void filter_shoutcast_metadata (source_t *source, char *metadata, unsigne
|
||||
metadata++;
|
||||
if (strncmp (metadata, "StreamTitle='", 13))
|
||||
break;
|
||||
if ((end = strstr (metadata, "\';")) == NULL)
|
||||
if ((end = strstr (metadata+13, "\';")) == NULL)
|
||||
break;
|
||||
len = (end - metadata) - 13;
|
||||
p = calloc (1, len+1);
|
||||
|
Loading…
Reference in New Issue
Block a user