Task #51821 - added.err

back to task #51821
download
Error: GCC_ANALYZER_WARNING (CWE-688):
alsa-lib-1.2.14/src/topology/save.c:96:9: warning[-Wanalyzer-null-argument]: use of NULL 'buf.printf_buf' where non-null expected
alsa-lib-1.2.14/src/topology/save.c:557:5: enter_function: entry to 'snd_tplg_save'
alsa-lib-1.2.14/src/topology/save.c:565:9: branch_true: following 'true' branch (when 'tplg' is non-NULL)...
alsa-lib-1.2.14/src/topology/save.c:566:9: branch_true: ...to here
alsa-lib-1.2.14/src/topology/save.c:566:9: branch_true: following 'true' branch (when 'dst' is non-NULL)...
alsa-lib-1.2.14/src/topology/save.c:567:9: branch_true: ...to here
alsa-lib-1.2.14/src/topology/save.c:567:9: release_memory: '*dst' is NULL
alsa-lib-1.2.14/src/topology/save.c:569:9: call_function: calling 'tplg_buf_init' from 'snd_tplg_save'
alsa-lib-1.2.14/src/topology/save.c:569:9: return_function: returning to 'snd_tplg_save' from 'tplg_buf_init'
alsa-lib-1.2.14/src/topology/save.c:571:12: branch_false: following 'false' branch...
alsa-lib-1.2.14/src/topology/save.c:586:23: branch_false: ...to here
alsa-lib-1.2.14/src/topology/save.c:586:23: call_function: calling 'tplg_save' from 'snd_tplg_save'
#argument 2 of '__builtin_strcpy' must be non-null
#   94|   	if (pl > 0)
#   95|   		strcpy(s + l, pfx);
#   96|-> 	strcpy(s + l + pl, dst->printf_buf);
#   97|   	dst->dst = s;
#   98|   	dst->dst_len = t - 1;