Commit 0fe62c6
Bluetooth: host: Fix bug in device name shortening handling
Fix bug in device name shortening handling leading to memory
corruption.
This is triggered by an underflow in the length field of the shortened
name when set_data_len + 2 > set_data_len_max.
Fixes: #27693
Signed-off-by: Joakim Andersson <[email protected]>1 parent f332d51 commit 0fe62c6
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6592 | 6592 | | |
6593 | 6593 | | |
6594 | 6594 | | |
6595 | | - | |
| 6595 | + | |
| 6596 | + | |
6596 | 6597 | | |
6597 | | - | |
| 6598 | + | |
| 6599 | + | |
6598 | 6600 | | |
6599 | 6601 | | |
6600 | 6602 | | |
6601 | 6603 | | |
6602 | 6604 | | |
| 6605 | + | |
6603 | 6606 | | |
6604 | 6607 | | |
6605 | 6608 | | |
| |||
0 commit comments