mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 02:48:59 -04:00
libfuse: fix use-after-free in fuse_lib_ioctl
This commit is contained in:
parent
f71e27644e
commit
3ff9794fff
1 changed files with 3 additions and 3 deletions
|
|
@ -3395,7 +3395,6 @@ fuse_lib_ioctl(fuse_req_t *req_,
|
||||||
out_buf = (char*)malloc(out_size);
|
out_buf = (char*)malloc(out_size);
|
||||||
if(!out_buf)
|
if(!out_buf)
|
||||||
goto err;
|
goto err;
|
||||||
DEFER { free(out_buf); };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(in_buf && out_buf)
|
if(in_buf && out_buf)
|
||||||
|
|
@ -3412,10 +3411,11 @@ fuse_lib_ioctl(fuse_req_t *req_,
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
fuse_reply_ioctl(req_,err,out_buf,out_size);
|
fuse_reply_ioctl(req_,err,out_buf,out_size);
|
||||||
return;
|
goto out;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
fuse_reply_err(req_,err);
|
fuse_reply_err(req_,err);
|
||||||
|
out:
|
||||||
|
free(out_buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue