-
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
Use null-terminated SerialNumber #11462
Merged
andy31415
merged 1 commit into
project-chip:master
from
markus-becker-tridonic-com:null-terminated-serialnumber
Nov 8, 2021
Merged
Use null-terminated SerialNumber #11462
andy31415
merged 1 commit into
project-chip:master
from
markus-becker-tridonic-com:null-terminated-serialnumber
Nov 8, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
markus-becker-tridonic-com
force-pushed
the
null-terminated-serialnumber
branch
from
November 5, 2021 07:14
1031534
to
9c9d9db
Compare
pullapprove
bot
requested review from
anush-apple,
austinh0,
balducci-apple,
bzbarsky-apple,
carol-apple,
chrisdecenzo,
chulspro,
Damian-Nordic,
electrocucaracha,
emargolis,
franck-apple,
harimau-qirex,
hawk248,
holbrookt,
jelderton,
jepenven-silabs,
jmartinez-silabs,
kghost,
kpschoedel,
LuDuda,
mrjerryjohns,
msandstedt,
pan-apple,
sagar-apple,
saurabhst and
selissia
November 5, 2021 07:14
pullapprove
bot
requested review from
wbschiller,
woody-apple and
yunhanw-google
November 5, 2021 07:15
PR #11462: Size comparison from 7b71fb2 to 9c9d9db Increases (11 builds for esp32, k32w, p6, qpg, telink)
Full report (11 builds for esp32, k32w, p6, qpg, telink)
|
src/include/platform/internal/GenericConfigurationManagerImpl.cpp
Outdated
Show resolved
Hide resolved
src/include/platform/internal/GenericConfigurationManagerImpl.cpp
Outdated
Show resolved
Hide resolved
src/include/platform/internal/GenericConfigurationManagerImpl.cpp
Outdated
Show resolved
Hide resolved
src/include/platform/internal/GenericConfigurationManagerImpl.cpp
Outdated
Show resolved
Hide resolved
src/include/platform/internal/GenericConfigurationManagerImpl.cpp
Outdated
Show resolved
Hide resolved
@bzbarsky-apple please wait with review, I am still fixing up things. |
markus-becker-tridonic-com
force-pushed
the
null-terminated-serialnumber
branch
2 times, most recently
from
November 5, 2021 10:54
3e2b0d9
to
45db284
Compare
PR #11462: Size comparison from 3f67119 to 45db284 Increases (9 builds for k32w, p6, qpg, telink)
Full report (9 builds for k32w, p6, qpg, telink)
|
markus-becker-tridonic-com
force-pushed
the
null-terminated-serialnumber
branch
from
November 5, 2021 11:39
45db284
to
60d5dc8
Compare
PR #11462: Size comparison from 3f67119 to 60d5dc8 Increases (31 builds for efr32, esp32, k32w, linux, nrfconnect, p6, qpg, telink)
Decreases (4 builds for mbed)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
markus-becker-tridonic-com
force-pushed
the
null-terminated-serialnumber
branch
from
November 5, 2021 13:43
60d5dc8
to
651b75b
Compare
PR #11462: Size comparison from 3f67119 to 651b75b Increases (31 builds for efr32, esp32, k32w, linux, nrfconnect, p6, qpg, telink)
Decreases (4 builds for mbed)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
bzbarsky-apple
approved these changes
Nov 6, 2021
emargolis
reviewed
Nov 7, 2021
emargolis
approved these changes
Nov 7, 2021
markus-becker-tridonic-com
force-pushed
the
null-terminated-serialnumber
branch
from
November 8, 2021 08:43
651b75b
to
98c78f0
Compare
* Aligned with FirmwareRevisionString, ProductionRevisionString, ProductName, VendorName which are also null-terminated * Adapt SerialNumber test accordingly
markus-becker-tridonic-com
force-pushed
the
null-terminated-serialnumber
branch
from
November 8, 2021 08:59
98c78f0
to
03c577a
Compare
PR #11462: Size comparison from 3f82de1 to 03c577a Increases (32 builds for efr32, esp32, k32w, linux, nrfconnect, p6, qpg, telink)
Decreases (4 builds for mbed)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
markus-becker-tridonic-com
requested review from
emargolis and
bzbarsky-apple
November 8, 2021 10:35
jelderton
approved these changes
Nov 8, 2021
PSONALl
pushed a commit
to PSONALl/connectedhomeip
that referenced
this pull request
Dec 3, 2021
* Aligned with FirmwareRevisionString, ProductionRevisionString, ProductName, VendorName which are also null-terminated * Adapt SerialNumber test accordingly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Other strings (FirmwareRevisionString, ProductionRevisionString, ProductName, VendorName) are null-terminated. SerialNumber is not.
Change overview
which are also null-terminated
Testing
Serial Number has a unit test.
Tested on nrf52840-dk lighting-app with
bufSize - 1
in https://github.com/project-chip/connectedhomeip/blob/master/src/platform/Zephyr/ZephyrConfig.cpp#L179. this means that the stored value has to be without null-terminator. FYI: @Damian-Nordic