osmo-ggsn/tests
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
..
gtp tests: Replace deprecated API log_set_print_filename 2021-02-19 13:23:00 +01:00
lib tests: in46a_test: Make coverity happy when calling in46a_from_eua 2022-02-09 09:41:46 +01:00
Makefile.am Add unit tests for libgtp gtpie.[ch] functions 2017-10-14 08:11:13 +02:00
testsuite.at gtp: queue: Add unit test queue_test 2019-06-21 11:57:50 +02:00