Commit c912926
Jira 868, BLE Peripheral stack crash with long write, git456
Root cause:
- Upon processing the write event, The received user data
was casted incorrectly using the base class. Resulted
in using an incorrect offset that caused memcpy to
use incorrect address and length.
Code Mods:
1. BLECallbacks.cpp:
Adjust the typecast order, from base class to child
class in profile_longwrite_process() and
profile_longflush_process().1 parent 3612e08 commit c912926
1 file changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
| |||
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
91 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
92 | 104 | | |
93 | 105 | | |
94 | 106 | | |
| |||
0 commit comments