osmo-ggsn/tests/lib
Pau Espin 46f04343a5 tests: in46a_test: Make coverity happy when calling in46a_from_eua
Coverity warns around that test code:
"Overrunning struct type in46_addr of 20 bytes by passing it to a
function which accesses it at byte offset 39."

That's basically because in64a_from_eua expects to be passed a 2 element
array to be filled. The second element, though, is only accessed in the
case where an IPv4v6 EUA is passed, so in the cases where the test
explicitly passes an IPv4 or IPv6 EUA it's not really an issue, hence
coverity throwing a false positive here.
Let's anyway rewrite the code to pass a 2 element array for completeness,
since it doesn't hurt and makes coverity happy.

Related: Coverity CID#249006
Change-Id: Idfc9104f48eeee6e7f11ebc5c17d4b0e4b2fe9e2
2022-02-09 09:41:46 +01:00
..
Makefile.am tests: Split ipv6 specific tests into a new test group 2017-12-04 13:25:02 +01:00
in46a_test.c tests: in46a_test: Make coverity happy when calling in46a_from_eua 2022-02-09 09:41:46 +01:00
in46a_test.ok tests: Split ipv6 specific tests into a new test group 2017-12-04 13:25:02 +01:00
in46a_v6_test.ok Add support for IPv4v6 End User Addresses 2017-12-11 11:39:18 +01:00
ippool_test.c tests: Replace deprecated API log_set_print_filename 2021-02-19 13:23:00 +01:00
ippool_test.err tests: Split ipv6 specific tests into a new test group 2017-12-04 13:25:02 +01:00
ippool_test.ok tests: Split ipv6 specific tests into a new test group 2017-12-04 13:25:02 +01:00
ippool_v6_test.err tests: Split ipv6 specific tests into a new test group 2017-12-04 13:25:02 +01:00
ippool_v6_test.ok tests: Split ipv6 specific tests into a new test group 2017-12-04 13:25:02 +01:00