Re: [PATCH] Fix null pointer dereference in util/fdmon-epoll.c

2022-01-13 Thread Stefan Hajnoczi
On Tue, Jan 11, 2022 at 08:10:59PM +0800, Daniella Lee wrote: > Orginal qemu commit hash: de3f5223fa4cf8bfc5e3fe1fd495ddf468edcdf7 > In util/fdmon-epoll.c, function fdmon_epoll_update, variable "old_node" > maybe NULL with the condition, while it is directly used in the statement and > may lead t

[PATCH] Fix null pointer dereference in util/fdmon-epoll.c

2022-01-11 Thread Daniella Lee
Orginal qemu commit hash: de3f5223fa4cf8bfc5e3fe1fd495ddf468edcdf7 In util/fdmon-epoll.c, function fdmon_epoll_update, variable "old_node" maybe NULL with the condition, while it is directly used in the statement and may lead to null pointer dereferencen problem. Variable "r" in the condition is