mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Add proper input validation for readdir policy
This commit is contained in:
parent
69de4de53f
commit
335ca55a6e
3 changed files with 33 additions and 6 deletions
|
|
@ -81,6 +81,9 @@ FUSE::ReadDir::from_string(std::string const &str_)
|
|||
{
|
||||
std::lock_guard<std::mutex> lg(_mutex);
|
||||
|
||||
if(!FUSE::ReadDirFactory::valid(str_))
|
||||
return -EINVAL;
|
||||
|
||||
_type = str_;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue