enchant2-2.6.7-1.fc40
List of Defects
Error: CPPCHECK_WARNING: [#def1]
enchant2-2.6.7-build/enchant-2.6.7/providers/enchant_hunspell.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def2]
enchant2-2.6.7-build/enchant-2.6.7/providers/enchant_voikko.c: scope_hint: In function 'voikko_dict_suggest'
enchant2-2.6.7-build/enchant-2.6.7/providers/enchant_voikko.c:73:42: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 73 | char **sugg_arr = calloc(sizeof (char *), *out_n_suggs + 1);
# | ^~~~
enchant2-2.6.7-build/enchant-2.6.7/providers/enchant_voikko.c:73:42: note: earlier argument should specify number of elements, later size of each element
# 71| for (*out_n_suggs = 0; voikko_sugg_arr[*out_n_suggs] != NULL; (*out_n_suggs)++);
# 72|
# 73|-> char **sugg_arr = calloc(sizeof (char *), *out_n_suggs + 1);
# 74| if (sugg_arr == NULL)
# 75| return NULL;
Error: COMPILER_WARNING: [#def3]
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: [#def4]
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: [#def5]
enchant2-2.6.7-build/enchant-2.6.7/src/enchant-lsmod.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def6]
enchant2-2.6.7-build/enchant-2.6.7/src/enchant.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def7]
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: [#def8]
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-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-72.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | enchant2-2.6.7-1.fc40 |
store-results-to | /tmp/tmpziqdd0tj/enchant2-2.6.7-1.fc40.tar.xz |
time-created | 2024-07-03 12:29:40 |
time-finished | 2024-07-03 12:32:28 |
tool | csmock |
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-version | csmock-3.5.3-1.el9 |