freeradius-server icon indicating copy to clipboard operation
freeradius-server copied to clipboard

initialize buff to placate coverity (CIDs #1503942, #1504042)

Open jejones3141 opened this issue 3 years ago • 0 comments

Coverity doesn't realize that fr_sbuff_out_bstrncpy_allowed() will put something in buff, if only a NUL terminator. Until coverity sees annotations in macro definitions, the only way I know of to avoid the false positive "uninit_use_in_call" defects in SBUFF_PARSE_FLOAT_DEF()-generated functions is to actually initialize buff.

jejones3141 avatar Sep 21 '22 19:09 jejones3141