-
Notifications
You must be signed in to change notification settings - Fork 2k
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
chip-tool accesscontrol write acl accepts any random arguments #21892
Comments
This is true for all JSON parsing, not just acesscontrol. |
@bluebin14 So just to make sure I understand, the issue there is the |
@bzbarsky-apple yes I was asked to file an issue so someone can determine if it's an issue or not. It came up when incorrect fabricId was being passed which are now ignored anyway. |
@bluebin14 |
fabricIndex |
Ok. The fabricIndex bit is in fact allowed to be sent by the spec, so excluding it would be a bit odd. |
This helps catch cases when someone mis-types the name of an optional struct field. Fixes project-chip#21892
This helps catch cases when someone mis-types the name of an optional struct field. Fixes project-chip#21892
This helps catch cases when someone mis-types the name of an optional struct field. Fixes #21892
This helps catch cases when someone mis-types the name of an optional struct field. Fixes project-chip/connectedhomeip#21892
This helps catch cases when someone mis-types the name of an optional struct field. Fixes project-chip/connectedhomeip#21892
This helps catch cases when someone mis-types the name of an optional struct field. Fixes project-chip#21892
Problem
chip-tool accesscontrol write acl accepts any random arguments, e.g.
./chip-tool accesscontrol write acl '[{"water":123,"privilege":5,"authMode":2,"subjects":[],"targets":null}]' 12344321 0
Proposed Solution
Do not accept random arguments.
The text was updated successfully, but these errors were encountered: