virgl: disallow null-terminated debug messages
authorRyan Neph <ryanneph@google.com>
Fri, 23 Jul 2021 17:27:03 +0000 (10:27 -0700)
committerRyan Neph <ryanneph@google.com>
Fri, 23 Jul 2021 18:04:19 +0000 (11:04 -0700)
commit0972b0f7547fe9956a1b5a5cbfda38a0fd996fa6
tree3fafb84dd59b6d7c00c9eaec399fc5122c4c5faa
parent1431f6c7655f9aa2a7700f003ca6cf1f2d0dd198
virgl: disallow null-terminated debug messages

virglrenderer doesn't support null-terminated message strings, so
there's no reason for the guest to allow it.

Signed-off-by: Ryan Neph <ryanneph@google.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12043>
src/gallium/drivers/virgl/virgl_encode.c