-
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
Disallow writes to readonly attributes via AttributeAccessInterface #11942
Disallow writes to readonly attributes via AttributeAccessInterface #11942
Conversation
701de32
to
07aba95
Compare
Refactor WriteSingleClusterData and all dependent functions to take ConcreteAttributePath instead of ClusterInfoconnectedhomeip/src/app/util/ember-compatibility-functions.cpp Lines 569 to 579 in 07aba95
This comment was generated by todo based on a
|
is resolved.connectedhomeip/src/app/util/ember-compatibility-functions.cpp Lines 577 to 587 in 07aba95
This comment was generated by todo based on a
|
Lists not supported in attribute writes yet. }}connectedhomeip/src/controller/java/templates/CHIPClusters-JNI.zapt Lines 205 to 209 in 07aba95
This comment was generated by todo based on a
|
Lists not supported in attribute writes yet. }}connectedhomeip/src/controller/java/templates/ChipClusters-java.zapt Lines 257 to 266 in 07aba95
This comment was generated by todo based on a
|
Lists not supported in attribute writes yet. }}connectedhomeip/src/controller/java/templates/ChipClusters-java.zapt Lines 286 to 293 in 07aba95
This comment was generated by todo based on a
|
PR #11942: Size comparison from 494fb9b to 07aba95 Increases (7 builds for k32w, p6, qpg, telink)
Full report (9 builds for k32w, p6, qpg, telink)
|
07aba95
to
b8e8279
Compare
PR #11942: Size comparison from 1359f6e to b8e8279 Increases (29 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
@saurabhst @msandstedt @carol-apple @Damian-Nordic @LuDuda @vivien-apple @jepenven-silabs @jmartinez-silabs Please take a look? |
…cepted. Need to move the IsReadOnly() check higher up the callstack.
b8e8279
to
d7448ac
Compare
PR #11942: Size comparison from ef6455d to d7448ac Increases (6 builds for k32w, p6, telink)
Full report (9 builds for k32w, p6, qpg, telink)
|
d7448ac
to
e054d94
Compare
PR #11942: Size comparison from ef6455d to e054d94 Increases (27 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
Problem
AttributeAccessInterface allows writes to readonly attributes.
Change overview
Disallow those writes by checking for the "writable" flag up front.
Testing
Caught problems in our existing tests that were doing writes to readonly lists. Fixed by making those lists writable. This last bit required a bunch of changes to avoid codegen spitting out broken code to try and write the lists.