https://bugs.linaro.org/show_bug.cgi?id=2220
Bug ID: 2220
Summary: Coverity: Unused values in packet test
Product: OpenDataPlane - linux- generic reference
Version: v1.10
Hardware: Other
OS: Linux
Status: UNCONFIRMED
Severity: enhancement
Priority: ---
Component: Buffers & Packets
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
*** CID 161200: (UNUSED_VALUE)
/test/validation/packet/packet.c: 1170 in packet_test_align()
1164 /* Realign for addressability */
1165 CU_ASSERT(odp_packet_align(&pkt, offset,
1166 seg_len + 2, 0) >= 0);
1167
1168 /* Alignment doesn't change packet length or contents
*/
1169 CU_ASSERT(odp_packet_len(pkt) == pkt_len);
>>> CID 161200: (UNUSED_VALUE)
>>> Assigning value from "odp_packet_offset(pkt, offset, &aligned_seglen,
>>> NULL)" to "aligned_data" here, but that stored value is overwritten before
>>> it can be used.
1170 aligned_data = odp_packet_offset(pkt, offset,
1171 &aligned_seglen,
NULL);
1172 _packet_compare_offset(pkt, offset,
1173 segmented_test_packet, offset,
1174 aligned_seglen);
1175
/test/validation/packet/packet.c: 1162 in packet_test_align()
1156
1157 if (odp_packet_is_segmented(pkt)) {
1158 /* Can't address across segment boundaries */
1159 CU_ASSERT(odp_packet_align(&pkt, 0, pkt_len, 0) < 0);
1160
1161 offset = seg_len - 5;
>>> CID 161200: (UNUSED_VALUE)
>>> Assigning value from "odp_packet_offset(pkt, offset, &seg_len, NULL)"
>>> to "pkt_data" here, but that stored value is overwritten before it can be
>>> used.
1162 pkt_data = odp_packet_offset(pkt, offset, &seg_len,
NULL);
1163
1164 /* Realign for addressability */
1165 CU_ASSERT(odp_packet_align(&pkt, offset,
1166 seg_len + 2, 0) >= 0);
1167
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp