Commit fdb29fa
committed
Add: Compile-time guards for st41 TX payload geometry
Coverity CID 561696 reports an OVERRUN in build_packet, taking
sizeof(hdr->rtp) as the bound; the real extent is
sizeof(st41_fmd_hdr) + max_pkt_len into a larger mbuf element, so it
is a false positive. Pin the two premises that verdict rests on:
max_pkt_len stays a multiple of 4 (the payload write rounds up to a
whole word), and st41_fmd_hdr stays layout-identical to mt_udp_hdr +
st41_rtp_hdr (the chain payload mbuf is sized from one, max_pkt_len
derives from the other).
Signed-off-by: Wilczynski, Andrzej <andrzej.wilczynski@intel.com>1 parent 079aaf7 commit fdb29fa
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1459 | 1459 | | |
1460 | 1460 | | |
1461 | 1461 | | |
| 1462 | + | |
1462 | 1463 | | |
1463 | 1464 | | |
1464 | 1465 | | |
| |||
1681 | 1682 | | |
1682 | 1683 | | |
1683 | 1684 | | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
1684 | 1693 | | |
1685 | 1694 | | |
1686 | 1695 | | |
| |||
0 commit comments