From: Haotian Li Message-ID: Date: Tue, 10 Nov 2020 09:09:12 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit Subject: [Virtio-fs] [PATCH 0/2] virtiofsd: fix some accessing NULL pointer problem List-Id: Development discussions about virtio-fs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, virtio-fs@redhat.com Cc: linfeilong@huawei.com Hi, We find some potential NULL pointer bugs on tools/virtiofsd. Two patches are made to fix them. Haotian Li (2): tools/virtiofsd/buffer.c: check whether buf is NULL in fuse_bufvec_advance func virtiofsd/passthrough_ll.c: check whether lo_map_reserve returns NULL in main func tools/virtiofsd/buffer.c | 3 +++ tools/virtiofsd/passthrough_ll.c | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-)