-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix string buffer length in UUID trace helper #14574
Conversation
@noonfom, thank you for your changes. |
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.
Would it be possible to add a regression test for this?
You've marked [x] Covered by existing mbed-os tests (Greentea or Unittest)
. Maybe we have a test already that would have failed if only we'd run it. Could you provide more detail about which test covers this change?
Nice work! |
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.
@pan- Do we need some sort of automated regression test (e.g. unit test) before we merge this?
Yes, you can logs from valgrind in logs.zip file (VALGRIND should be defined in CI and executed). Once we run CI, we can verify |
Pull request has been modified.
...E_BLE/tests/UNITTESTS/FEATURE_BLE/source/common/ble_trace_helpers/test_ble_trace_helpers.cpp
Outdated
Show resolved
Hide resolved
...E_BLE/tests/UNITTESTS/FEATURE_BLE/source/common/ble_trace_helpers/test_ble_trace_helpers.cpp
Outdated
Show resolved
Hide resolved
...E_BLE/tests/UNITTESTS/FEATURE_BLE/source/common/ble_trace_helpers/test_ble_trace_helpers.cpp
Outdated
Show resolved
Hide resolved
@0xc0170 Can we get this in ? |
Pull request has been modified.
@pan- @paul-szczepanek-arm can you re-review this after the changes please. |
I've kicked the CI off in the meantime |
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.
Looks OK from a maintainers perspective
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Can we get this merged? The issue it fixes breaks Mbed-OS BLE on master for applications that use custom UUIDs |
@AGlass0fMilk I feel your pain. This PR will forever haunt me 😓 @0xc0170 @adbridge Can we please merge this first thing tomorrow? |
No worries, something was bound to break in the massive updates to BLE that have been going on. The traces are very nice to have. They make the BLE system seem a little less like a huge, mysterious black box. |
This pull request has automatically been marked as stale because it has had no recent activity. , please complete review of the changes to move the PR forward. Thank you for your contributions. |
Going to re-run the Ci as this has been pending for so long , just to double check it is still ok |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 3 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
The string buffer length in the to_string trace helper for UUIDs is not correct and results in rogue memory accesses.
This commit updates the string buffer length to the correct value of 37.
Impact of changes
Migration actions required
Documentation
None
Pull request type
Test results
Reviewers
@ARMmbed/mbed-os-connectivity