Skip to content

Commit

Permalink
Fix: FMD Adjust the Space Memory Check (#975)
Browse files Browse the repository at this point in the history
In the FMD build packet, we were checking
the space using a value that represented 4-byte
chunks. This has been fixed by multiplying the
value by 4.

Fixes: 664344a

Co-authored-by: Kolelis, Szymon <szymon.kolelis@intel.com>
  • Loading branch information
DawidWesierski4 and skolelis authored Sep 18, 2024
1 parent 664344a commit 3c74fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/st2110/st_tx_fastmetadata_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ static void tx_fastmetadata_session_build_packet(
uint16_t data_item_length =
(data_item_length_bytes + 3) / 4; /* expressed in number of 4-byte words */

if (rte_pktmbuf_data_len(pkt) < sizeof(*hdr) + data_item_length) {
if (rte_pktmbuf_data_len(pkt) < sizeof(*hdr) + data_item_length_bytes ) {
err("%s: packet doesn't contain RTP payload", __func__);
return;
}
Expand Down

0 comments on commit 3c74fdc

Please sign in to comment.