From 54889c72e3469027a852d9e8ff029d659e612094 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 23 Jul 2009 12:01:03 +0200 Subject: pcm_convert: use GError for error handling Don't abort the whole MPD process when the conversion fails. This has been a denial-of-service attack vector for years. --- test/run_output.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/run_output.c') diff --git a/test/run_output.c b/test/run_output.c index a280f88d4..594c4cd64 100644 --- a/test/run_output.c +++ b/test/run_output.c @@ -44,8 +44,11 @@ pcm_convert(G_GNUC_UNUSED struct pcm_convert_state *state, G_GNUC_UNUSED const struct audio_format *src_format, G_GNUC_UNUSED const void *src, G_GNUC_UNUSED size_t src_size, G_GNUC_UNUSED const struct audio_format *dest_format, - G_GNUC_UNUSED size_t *dest_size_r) + G_GNUC_UNUSED size_t *dest_size_r, + GError **error_r) { + g_set_error(error_r, pcm_convert_quark(), 0, + "Not implemented"); return NULL; } -- cgit v1.2.3