Re: [PATCH] ui/spice-display: check NULL pointer in interface_release_resource()

2021-05-21 Thread P J P
+-- On Thu, 20 May 2021, Mauro Matteo Cascella wrote --+ | diff --git a/ui/spice-display.c b/ui/spice-display.c | index d22781a23d..f59c69882d 100644 | --- a/ui/spice-display.c | +++ b/ui/spice-display.c | @@ -561,6 +561,10 @@ static void interface_release_resource(QXLInstance *sin, |

[PATCH] ui/spice-display: check NULL pointer in interface_release_resource()

2021-05-20 Thread Mauro Matteo Cascella
Check rext.info to avoid potential NULL pointer dereference. A similar check exists in interface_release_resource() in hw/display/qxl.c. Reported-by: Yu Lu Signed-off-by: Mauro Matteo Cascella --- ui/spice-display.c | 4 1 file changed, 4 insertions(+) diff --git a/ui/spice-display.c