Fixed defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
libreport-2.17.15/src/lib/workflow_xml_parser.c: scope_hint: In function 'load_workflow_description_from_file'
libreport-2.17.15/src/lib/workflow_xml_parser.c:198:42: warning[-Wanalyzer-null-argument]: use of NULL 'parse_data.attribute_lang' where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libreport-2.17.15/src/include/workflow.h:22: included_from: Included from here.
libreport-2.17.15/src/lib/workflow_xml_parser.c:19: included_from: Included from here.
libreport-2.17.15/src/lib/workflow_xml_parser.c:197:29: note: in expansion of macro 'g_strdup'
libreport-2.17.15/src/lib/workflow_xml_parser.c: scope_hint: In function 'load_workflow_description_from_file'
/usr/include/glib-2.0/glib/galloca.h:35: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/string.h:286:14: note: argument 1 of 'strchrnul' must be non-null
#  196|       struct my_parse_data parse_data = { workflow, NULL, NULL, 0, 0, 0};
#  197|       parse_data.cur_locale = g_strdup(setlocale(LC_ALL, NULL));
#  198|->     strchrnul(parse_data.cur_locale, '.')[0] = '\0';
#  199|   
#  200|       GMarkupParser parser;

Scan Properties

analyzer-version-clang18.1.3
analyzer-version-cppcheck2.13.0
analyzer-version-gcc14.0.1
analyzer-version-gcc-analyzer14.0.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.3
diffbase-analyzer-version-cppcheck2.13.0
diffbase-analyzer-version-gcc14.0.1
diffbase-analyzer-version-gcc-analyzer14.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-93.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namelibreport-2.17.15-1.fc41
diffbase-store-results-to/tmp/tmpxndmap0c/libreport-2.17.15-1.fc41.tar.xz
diffbase-time-created2024-04-22 11:00:08
diffbase-time-finished2024-04-22 11:03:55
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpxndmap0c/libreport-2.17.15-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpxndmap0c/libreport-2.17.15-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-93.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibreport-2.17.15-1.fc40
store-results-to/tmp/tmpatwfcbog/libreport-2.17.15-1.fc40.tar.xz
time-created2024-04-22 10:56:21
time-finished2024-04-22 10:59:52
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpatwfcbog/libreport-2.17.15-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpatwfcbog/libreport-2.17.15-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9