buffer.c: check whether buf is NULL in fuse_bufvec_advance func
authorZhiqiang Liu <liuzhiqiang26@huawei.com>
Thu, 5 Nov 2020 08:33:22 +0000 (16:33 +0800)
committerNikolaus Rath <Nikolaus@rath.org>
Fri, 6 Nov 2020 19:26:03 +0000 (19:26 +0000)
commitd614415a0c4ebf587e690ea209da1436e73fae19
tree74028a63eda54961756be0392a094dd0d5975328
parent2fc070f148b91876bcca7323a0f2767eb4f8d6d1
buffer.c: check whether buf is NULL in fuse_bufvec_advance func

In fuse_bufvec_advance func, calling fuse_bufvec_current func
may return NULL, so we should check whether buf is NULL before
using it.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Signed-off-by: Haotian Liu <lihaotian9@huawei.com>
lib/buffer.c