Re: [PATCH 7/7] vhost-user-gpu: fix OOB write in 'virgl_cmd_get_capset'

2021-05-05 Thread P J P
+-- On Tue, 4 May 2021, Li Qiang wrote --+ | If 'virgl_cmd_get_capset' set 'max_size' to 0, | the 'virgl_renderer_fill_caps' will write the data after the 'resp'. | This patch avoid this by checking the returned 'max_size'. | | Signed-off-by: Li Qiang | --- | contrib/vhost-user-gpu/virgl.c | 4

[PATCH 7/7] vhost-user-gpu: fix OOB write in 'virgl_cmd_get_capset'

2021-05-04 Thread Li Qiang
If 'virgl_cmd_get_capset' set 'max_size' to 0, the 'virgl_renderer_fill_caps' will write the data after the 'resp'. This patch avoid this by checking the returned 'max_size'. Signed-off-by: Li Qiang --- contrib/vhost-user-gpu/virgl.c | 4 1 file changed, 4 insertions(+) diff --git