Check if encoder contains an invalid character. Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- server/tests/test-codecs-parsing.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/tests/test-codecs-parsing.c b/server/tests/test-codecs-parsing.c index 0390a49b..860a575e 100644 --- a/server/tests/test-codecs-parsing.c +++ b/server/tests/test-codecs-parsing.c @@ -109,6 +109,12 @@ static void codecs_bad(void) G_LOG_LEVEL_WARNING, "*spice: unknown video codec unknown_codec", TRUE, + },{ + // invalid characters in encoder + "spice&:mjpeg", + G_LOG_LEVEL_WARNING, + "*spice: invalid encoder:codec value*", + TRUE, }, #if !defined(HAVE_GSTREAMER_1_0) && !defined(HAVE_GSTREAMER_0_10) { -- 2.17.1 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel