Commit 65b7eec
MAC: guard against unsigned underflow in macSduRequest when grant < MAC_HEADER
LteMacEnb::macSduRequest() computed the SDU size as
allocatedBytes - MAC_HEADER in unsigned arithmetic. When the
scheduler allocates a grant smaller than MAC_HEADER (2 bytes),
this underflows to a huge value, so the MAC would request an absurdly
large SDU from RLC, tripping a misleading "configured queueSize too low"
error.
Reproducible with 3 UEs x 4-5 DRBs under QOS_PF contention.
Workaround: Clamp the requested size to 0 instead.
Also added TODO comments.1 parent b6116b5 commit 65b7eec
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
| |||
0 commit comments