https://bugs.linaro.org/show_bug.cgi?id=1657
Bug ID: 1657
Summary: CID 96201: Wrong sizeof argument
Product: OpenDataPlane
Version: 1.1
Hardware: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: ---
Component: Crypto
Assignee: [email protected]
Reporter: [email protected]
/example/ipsec/odp_ipsec_stream.c: 271 in create_ipv4_packet()
265 inner_ip->id = odp_cpu_to_be_16(stream->id);
266 inner_ip->ttl = 64;
267 inner_ip->tos = 0;
268 inner_ip->frag_offset = 0;
269 inner_ip->src_addr = odp_cpu_to_be_32(stream->src_ip);
270 inner_ip->dst_addr = odp_cpu_to_be_32(stream->dst_ip);
>>> CID 96201: Incorrect expression (SIZEOF_MISMATCH)
>>> Passing argument "inner_ip" of type "odph_ipv4hdr_t *" and argument "8
>>> /* sizeof (inner_ip) */" to function "odp_chksum" is suspicious.
271 inner_ip->chksum = odp_chksum(inner_ip,
sizeof(inner_ip));
272 data += sizeof(*inner_ip);
273 }
274
275 /* ICMP header so we can see it on wireshark */
276 icmp = (odph_icmphdr_t *)data;
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp