[Fix] Fix webOS's bluetooth overflow problem#71761
[Fix] Fix webOS's bluetooth overflow problem#71761jungwook-park wants to merge 1 commit intoproject-chip:masterfrom
Conversation
|
|
There was a problem hiding this comment.
Code Review
This pull request updates the _HexToBytes function in WbsDeviceScanner.cpp to include destination size validation and ensure the output buffer is zero-initialized for unused bytes. Feedback suggests optimizing the implementation by decoding directly into the destination buffer, thereby eliminating unnecessary heap allocation and memory copying. Additionally, the reviewer noted that braces should be used for all if statements to maintain consistency with the existing codebase style.
c79a20c to
3939be3
Compare
|
PR #71761: Size comparison from adb9376 to 3939be3 Full report (6 builds for cc32xx, nrfconnect, realtek, stm32)
|
3e63f7d to
2faa263
Compare
detailed: Prevent overflow lisk
2faa263 to
2428d8a
Compare
|
PR #71761: Size comparison from 6bf5656 to 2428d8a Full report (34 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #71761 +/- ##
==========================================
+ Coverage 54.50% 54.52% +0.02%
==========================================
Files 1588 1588
Lines 112392 108572 -3820
Branches 13521 13365 -156
==========================================
- Hits 61264 59204 -2060
+ Misses 51128 49368 -1760 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
Related issues
Fixes #71760
Testing
Manually verified rejection of oversized serviceData and confirmed normal Matter BLE advertisements are still parsed correctly.
Readability checklist
The checklist below will help the reviewer finish PR review in time and keep the
code readable: