Fix null ptr handling issue in ioctl processing

This commit is contained in:
Antonio SJ Musumeci 2026-03-19 20:49:08 -05:00 • committed by trapexit
parent 0f1a8e9b69
commit 881147daa2

View file

@ -3252,7 +3252,7 @@ fuse_lib_ioctl(fuse_req_t *req_,
}
assert(!arg->in_size || !out_size || arg->in_size == out_size);
if(out_buf)
if(out_buf && in_buf)
memcpy(out_buf,in_buf,arg->in_size);
err = f.ops.ioctl(&req_->ctx,