From: James Jones Date: Sat, 9 Jul 2022 00:33:42 +0000 (-0500) Subject: Annotate false positive sizeof mismatch (CID #1504018) (#4599) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbf9726c0b7fd8bb31601236f2eab99358a6dbf8;p=thirdparty%2Ffreeradius-server.git Annotate false positive sizeof mismatch (CID #1504018) (#4599) --- diff --git a/src/lib/unlang/xlat_builtin.c b/src/lib/unlang/xlat_builtin.c index ade0c843a97..e4b0dd7538a 100644 --- a/src/lib/unlang/xlat_builtin.c +++ b/src/lib/unlang/xlat_builtin.c @@ -3697,6 +3697,7 @@ static int xlat_protocol_register(fr_dict_t const *dict) xlat = xlat_register(NULL, buffer, protocol_decode_xlat, NULL); xlat_func_args(xlat, protocol_decode_xlat_args); + /* coverity[suspicious_sizeof] */ xlat_async_instantiate_set(xlat, protocol_xlat_instantiate, fr_test_point_pair_decode_t *, NULL, tp_decode); xlat_internal(xlat); } @@ -3711,6 +3712,7 @@ static int xlat_protocol_register(fr_dict_t const *dict) xlat = xlat_register(NULL, buffer, protocol_encode_xlat, NULL); xlat_func_args(xlat, protocol_encode_xlat_args); + /* coverity[suspicious_sizeof] */ xlat_async_instantiate_set(xlat, protocol_xlat_instantiate, fr_test_point_pair_encode_t *, NULL, tp_encode); xlat_internal(xlat); }