Fixed defects

List of Defects

Error: COMPILER_WARNING: [#def1]
enchant2-2.6.7-build/enchant-2.6.7/providers/enchant_voikko.c: scope_hint: In function 'voikko_provider_request_dict'
enchant2-2.6.7-build/enchant-2.6.7/providers/enchant_voikko.c:149:45: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
#  149 |         EnchantDict *dict = calloc (sizeof (EnchantDict), 1);
#      |                                             ^~~~~~~~~~~
enchant2-2.6.7-build/enchant-2.6.7/providers/enchant_voikko.c:149:45: note: earlier argument should specify number of elements, later size of each element
#  147|   	}
#  148|   
#  149|-> 	EnchantDict *dict = calloc (sizeof (EnchantDict), 1);
#  150|   	if (dict == NULL)
#  151|   		return NULL;

Error: COMPILER_WARNING: [#def2]
enchant2-2.6.7-build/enchant-2.6.7/providers/enchant_voikko.c: scope_hint: In function 'init_enchant_provider'
enchant2-2.6.7-build/enchant-2.6.7/providers/enchant_voikko.c:182:53: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
#  182 |         EnchantProvider *provider = calloc (sizeof (EnchantProvider), 1);
#      |                                                     ^~~~~~~~~~~~~~~
enchant2-2.6.7-build/enchant-2.6.7/providers/enchant_voikko.c:182:53: note: earlier argument should specify number of elements, later size of each element
#  180|   init_enchant_provider (void)
#  181|   {
#  182|-> 	EnchantProvider *provider = calloc (sizeof (EnchantProvider), 1);
#  183|   	if (provider == NULL)
#  184|   		return NULL;

Error: CPPCHECK_WARNING: [#def3]
enchant2-2.6.7-build/enchant-2.6.7/src/lib.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
enchant2-2.6.7-build/enchant-2.6.7/src/pwl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-72.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-nameenchant2-2.8.1-1.fc41
diffbase-store-results-to/tmp/tmppqmnzrbh/enchant2-2.8.1-1.fc41.tar.xz
diffbase-time-created2024-07-03 12:32:44
diffbase-time-finished2024-07-03 12:35:02
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmppqmnzrbh/enchant2-2.8.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmppqmnzrbh/enchant2-2.8.1-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-72.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameenchant2-2.6.7-1.fc40
store-results-to/tmp/tmpziqdd0tj/enchant2-2.6.7-1.fc40.tar.xz
time-created2024-07-03 12:29:40
time-finished2024-07-03 12:32:28
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpziqdd0tj/enchant2-2.6.7-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpziqdd0tj/enchant2-2.6.7-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9