The third parameter passed to b_quic_dec_int() is unitialized. This is not a bug.
But this disturbs coverity for an unknown reason as revealed by GH issue #3154.
This patch takes the opportunity to use NULL as passed value to avoid using such
an uneeded third parameter.
Should be backported to 3.2 where this unit test was introduced.
uint64_t val = 0;
struct buffer b;
char area[12];
- size_t len;
int ret = 1;
BUG_ON(b_data(&b) != b_contig_data(&b, b_head_ofs(&b)));
/* test that b_quic_dec_int() can decode a wrapping value */
- b_quic_dec_int(&val, &b, &len);
+ b_quic_dec_int(&val, &b, NULL);
if (val != init)
goto out;