-
Incident report
-
Resolution: Duplicate
-
Trivial
-
3.4.0alpha1
Variable value_ui64 can stay uninitialized if operation type none of these values - ZBX_PREPROC_BOOL2DEC, ZBX_PREPROC_OCT2DEC, ZBX_PREPROC_HEX2DEC
In src/libs/zbxdbcache/item_preproc.c:
Declaring variable value_ui64 without initializer.
static int item_preproc_2dec(zbx_variant_t *value, unsigned char op_type, char **errmsg) { zbx_uint64_t value_ui64;
Uninitialized scalar variable (UNINIT)4. uninit_use_in_call: Using uninitialized value value_ui64 when calling zbx_variant_set_ui64.
zbx_variant_set_ui64(value, value_ui64);
(CID 155652)