devicemapper-rs
devicemapper-rs copied to clipboard
The number of CacheDev policy arguments could be incorrect
Related: #485
Currently, the program can fail at runtime, since user-inputted policy arguments which are incorrect can lead to a out-of-bounds error.
Such arguments could be incorrect in one or both of the following ways:
- The argument which specifies the number of policy arguments that are supposedly inputted could be different than the number of policy arguments that are actually inputted.
- The argument which specifies the number of policy arguments could be odd, i.e. unrepresentative of complete key/value pairs to be passed to the policy.