Commit a1471dd
committed
nimble/audio: Bound broadcast sink subgroup count
Reject sync requests whose subgroup count exceeds the broadcast
sink subgroup array before copying BIS sync values into it.
The previous code relied on a debug assertion in the scan
delegator path, but production builds can still receive an
oversized sync option.
Fixes #2188
Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com>1 parent 8ff6928 commit a1471dd
4 files changed
Lines changed: 54 additions & 2 deletions
File tree
- nimble/host/audio
- src
- test
- src
- testcases
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1579 | 1579 | | |
1580 | 1580 | | |
1581 | 1581 | | |
| 1582 | + | |
1582 | 1583 | | |
1583 | 1584 | | |
1584 | 1585 | | |
1585 | 1586 | | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
1586 | 1594 | | |
1587 | 1595 | | |
1588 | | - | |
| 1596 | + | |
1589 | 1597 | | |
1590 | 1598 | | |
1591 | 1599 | | |
| |||
1596 | 1604 | | |
1597 | 1605 | | |
1598 | 1606 | | |
1599 | | - | |
| 1607 | + | |
1600 | 1608 | | |
1601 | 1609 | | |
1602 | 1610 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments