[PATCH v3 0/3] virtiofsd: fix some accessing NULL pointer problem

Haotian Li posted 3 patches 3 years, 5 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/3477d902-ace9-1aa1-531a-9d20d6e93a05@huawei.com
Maintainers: "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>
tools/virtiofsd/buffer.c         |  4 ++++
tools/virtiofsd/passthrough_ll.c | 16 +++++++++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
[PATCH v3 0/3] virtiofsd: fix some accessing NULL pointer problem
Posted by Haotian Li 3 years, 5 months ago
Hi,
  We find some potential NULL pointer bugs on tools/virtiofsd.
Three patches are made to fix them

Haotian Li (3):
  tools/virtiofsd/buffer.c: check whether buf is NULL in
    fuse_bufvec_advance func
  virtiofsd: check whether lo_map_reserve returns NULL in main func
  virtiofsd: check whether strdup lo.source return NULL in main func.

 tools/virtiofsd/buffer.c         |  4 ++++
 tools/virtiofsd/passthrough_ll.c | 16 +++++++++++++++-
 2 files changed, 19 insertions(+), 1 deletion(-)

-- 

Re: [PATCH v3 0/3] virtiofsd: fix some accessing NULL pointer problem
Posted by Dr. David Alan Gilbert 3 years, 5 months ago
* Haotian Li (lihaotian9@huawei.com) wrote:
> Hi,
>   We find some potential NULL pointer bugs on tools/virtiofsd.
> Three patches are made to fix them

Queued

> Haotian Li (3):
>   tools/virtiofsd/buffer.c: check whether buf is NULL in
>     fuse_bufvec_advance func
>   virtiofsd: check whether lo_map_reserve returns NULL in main func
>   virtiofsd: check whether strdup lo.source return NULL in main func.
> 
>  tools/virtiofsd/buffer.c         |  4 ++++
>  tools/virtiofsd/passthrough_ll.c | 16 +++++++++++++++-
>  2 files changed, 19 insertions(+), 1 deletion(-)
> 
> -- 
> 
-- 
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK