devicemapper-rs icon indicating copy to clipboard operation
devicemapper-rs copied to clipboard

The number of CacheDev policy arguments could be incorrect

Open waltdisgrace opened this issue 5 years ago • 0 comments

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.

waltdisgrace avatar Aug 07 '20 20:08 waltdisgrace