-
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
[Silabs][SiWx917] Factory data provider for SiWx917 #24747
[Silabs][SiWx917] Factory data provider for SiWx917 #24747
Conversation
8a0f203
to
fd28ca4
Compare
PR #24747: Size comparison from 210ae33 to fd28ca4 Increases (4 builds for bl602, esp32, psoc6)
Decreases (5 builds for nrfconnect, psoc6, telink)
Full report (54 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
PR #24747: Size comparison from 36d2d4d to 03511e0 Increases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
PR #24747: Size comparison from 36d2d4d to 7b31294 Increases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
7b31294
to
ee4b95d
Compare
PR #24747: Size comparison from 04adc52 to 832132a Decreases (1 build for cc32xx)
Full report (4 builds for cc32xx, mbed, qpg)
|
c4366bb
to
d5d73a6
Compare
{ | ||
for (uint8_t i = 0; i < result1.size(); i++) | ||
{ | ||
outBuf[i] = result1.at(i); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lack of a length check here is pretty fragile, but ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolving to merge - platform owner approved this potential out of bounds access :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merged, now re-opening for visibility. The method should have taken a span as input to do bounds checking.
PR #24747: Size comparison from e0e3225 to d5d73a6 Increases (3 builds for bl602, bl702)
Decreases (1 build for bl602)
Full report (9 builds for bl602, bl702, cc32xx, linux, qpg)
|
PR #24747: Size comparison from e0e3225 to 4ca4747 Increases (4 builds for cc32xx, mbed, qpg)
Full report (4 builds for cc32xx, mbed, qpg)
|
* Adding the temp logic for the factory device data provider for SiWx917 * Restyled by whitespace * Added some comments * restyling the PR * Added the device config for other applications * Restyled by clang-format * Addressed review comments * Setting the device config to default values and using static cast * Restyled by whitespace --------- Co-authored-by: Restyled.io <[email protected]>
Factory data provider for SiWx917
This is a temp fix, the user can write the details in the DeviceConfig.h (Discriminator, passcode and all) and then build the project with
siwx917_commissionable_data=true
and then the device properties will be flashed in the nvm section of the SiWx917 board.