-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[1.3] Out-of-Range Problems in Various color control cluster #34721
Comments
@bzbarsky-apple Getting this pr in will help since it will add all the correct enum types. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Remove stale label or comment or this will be closed in 30 days. |
PR to add constraint check to the required arguments on the cluster server implementation. It was also discussed that it was valid for Chip-tool, as a testing tool, to send out-of-range values as it can add negative tests against server implementations. |
Reproduction steps
When there are constraints for transaction time (0-65534) and the OptionsMask and OptionsOverride (which are restricted to 0-1) in specification, but there is no restriction in the implementation code. Thus, values such as 65535 and 3 could work normally.
MoveToHue Command has an out-of-range problem
There is no constraint check for field 2 (Transaction Time). The normal range is 0-65534.
./chip-tool any command-by-id 0x0300 0x00 '{"0":254,"1":2,"2":65535}' 0x654324 1
MoveHue Command has an out-of-range problem
There are no constraint checks for field 2 and field 3.
./chip-tool any command-by-id 0x0300 0x01 '{"0":3,"1":3,"2":3,"3":3}' 0x654324 1
StepHue Command has an out-of-range problem
There are no constraint checks for field 3 and field 4.
MoveToSaturation Command has an out-of-range problem
There are no constraint checks for field 1, field 2, and field 3.
./chip-tool any command-by-id 0x0300 0x03 '{"0":254,"1":65535,"2":3,"3":3}' 0x654324 1
MoveSaturation Command has an out-of-range problem
There are no constraint checks for field 2 and field 3.
./chip-tool any command-by-id 0x0300 0x04 '{"0":3,"1":1,"2":3,"3":3}' 0x654324 1
StepSaturation Command has an out-of-range problem
There are no constraint checks for field 3 and field 4.
MoveToHueAndSaturation Command has an out-of-range problem
There are no constraint checks for field 1, field 3, and field 4.
./chip-tool any command-by-id 0x0300 0x06 '{"0":254,"1":254,"2":65535,"3":3,"4":3}' 0x654324 1
MoveToColor Command has an out-of-range problem
There is no constraint check for field 2.
./chip-tool any command-by-id 0x0300 0x07 '{"0":65279,"1":65279,"2":65535,"3":3,"4":3}' 0x654324 1
....
Bug prevalence
each time
GitHub hash of the SDK that was being used
561d23d
Platform
other, core
Platform Version(s)
1.3
Type
Common Cluster Logic, Spec Compliance Issue
Anything else?
No response
The text was updated successfully, but these errors were encountered: