-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The number of feature args could be incorrect #485
Comments
@waltdisgrace Please generalize this issue so it covers the general case where the value for the number of feature args can be incorrect and lead to an out-of-bounds error. It describes the code in most, or possibly all, of the targets implemented. |
Some notes: What you really want to look for are
You will find that the same problem shows up in most but maybe not all of our implmentations of https://github.com/stratis-storage/devicemapper-rs/blob/master/src/thinpooldev.rs#L92 |
If the user-provided number of feature args is incorrect, then the call to the parse_feature_args function, which utilizes this number, could lead to an out-of-bounds error that fails the program at runtime.
The text was updated successfully, but these errors were encountered: