mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Fix for evil format string vulnerability - people, don't DO THIS!
Fix from Emil Styrke <emil@lysator.liu.se> svn path=/trunk/icecast/; revision=3341
This commit is contained in:
parent
92bb45ddc7
commit
8a4ae84dce
@ -141,11 +141,11 @@ int format_vorbis_get_buffer(format_plugin_t *self, char *data, unsigned long le
|
||||
|
||||
/* put known comments in the stats */
|
||||
tag = vorbis_comment_query(&state->vc, "TITLE", 0);
|
||||
if (tag) stats_event_args(self->mount, "title", tag);
|
||||
else stats_event_args(self->mount, "title", "unknown");
|
||||
if (tag) stats_event(self->mount, "title", tag);
|
||||
else stats_event(self->mount, "title", "unknown");
|
||||
tag = vorbis_comment_query(&state->vc, "ARTIST", 0);
|
||||
if (tag) stats_event_args(self->mount, "artist", tag);
|
||||
else stats_event_args(self->mount, "artist", "unknown");
|
||||
if (tag) stats_event(self->mount, "artist", tag);
|
||||
else stats_event(self->mount, "artist", "unknown");
|
||||
|
||||
/* don't need these now */
|
||||
ogg_stream_clear(&state->os);
|
||||
|
Loading…
Reference in New Issue
Block a user