Fixed defects
List of Defects
Error: CLANG_WARNING: [#def1]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-buffer-serialize.cc:724: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-buffer-deserialize-text-glyphs.rl:107:46: warning[deadcode.DeadStores]: Value stored to 'eof' during its initialization is never read
# 105| hb_font_t *font)
# 106| {
# 107|-> const char *p = buf, *pe = buf + buf_len, *eof = pe, *orig_pe = pe;
# 108|
# 109| /* Ensure we have positions. */
Error: CLANG_WARNING: [#def2]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-buffer-serialize.cc:725: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-buffer-deserialize-text-unicode.rl:88:46: warning[deadcode.DeadStores]: Value stored to 'eof' during its initialization is never read
# 86| hb_font_t *font)
# 87| {
# 88|-> const char *p = buf, *pe = buf + buf_len, *eof = pe, *orig_pe = pe;
# 89|
# 90| while (p < pe && ISSPACE (*p))
Error: COMPILER_WARNING: [#def3]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-object.hh:328:53: warning[-Wcalloc-transposed-args]: ‘void* calloc(size_t, size_t)’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
# 328 | user_data = (hb_user_data_array_t *) hb_calloc (sizeof (hb_user_data_array_t), 1);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-object.hh:328:53: note: earlier argument should specify number of elements, later size of each element
# 326| if (unlikely (!user_data))
# 327| {
# 328|-> user_data = (hb_user_data_array_t *) hb_calloc (sizeof (hb_user_data_array_t), 1);
# 329| if (unlikely (!user_data))
# 330| return false;
Error: COMPILER_WARNING: [#def4]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-ot-cff1-table.cc:33: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-ot-cff1-table.hh: scope_hint: In member function ‘bool OT::cff1::accelerator_t::get_glyph_from_name(const char*, int, hb_codepoint_t*) const’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-ot-cff1-table.hh:1440:60: warning[-Wcalloc-transposed-args]: ‘void* calloc(size_t, size_t)’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
# 1440 | names = (hb_sorted_vector_t<gname_t> *) hb_calloc (sizeof (hb_sorted_vector_t<gname_t>), 1);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-ot-cff1-table.hh:1440:60: note: earlier argument should specify number of elements, later size of each element
# 1438| if (unlikely (!names))
# 1439| {
# 1440|-> names = (hb_sorted_vector_t<gname_t> *) hb_calloc (sizeof (hb_sorted_vector_t<gname_t>), 1);
# 1441| if (likely (names))
# 1442| {
Error: CLANG_WARNING: [#def5]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-ot-shaper-indic-table.cc:28: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-ot-shaper-myanmar-machine.hh:450:2: warning[deadcode.DeadStores]: Value stored to 'te' is never read
# 448| cs = myanmar_syllable_machine_start;
# 449| ts = 0;
# 450|-> te = 0;
# 451| act = 0;
# 452| }
Error: GCC_ANALYZER_WARNING (CWE-685): [#def6]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:525:29: warning[-Wanalyzer-va-list-exhausted]: ‘expected_tags’ has no more arguments (0 consumed)
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:513:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:514:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:514:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:513:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:514:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:514:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:513:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:514:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:514:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:513:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:514:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:514:3: note: in expansion of macro ‘g_assert’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:520:3: note: in expansion of macro ‘g_assert_cmpuint’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:521:3: note: in expansion of macro ‘g_assert_cmpuint’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:521:3: note: in expansion of macro ‘g_assert_cmpuint’
# 523| for (i = 0; i < script_count + language_count; i++)
# 524| {
# 525|-> hb_tag_t expected_tag = hb_tag_from_string (va_arg (expected_tags, const char *), -1);
# 526| hb_tag_t actual_tag = i < script_count ? script_tags[i] : language_tags[i - script_count];
# 527| g_assert_cmphex (actual_tag, ==, expected_tag);
Error: GCC_ANALYZER_WARNING (CWE-685): [#def7]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c: scope_hint: In function ‘test_tags’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:525:29: warning[-Wanalyzer-va-list-exhausted]: ‘expected_tags’ has no more arguments (1 consumed)
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:513:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:514:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:514:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:527:5: note: in expansion of macro ‘g_assert_cmphex’
# 523| for (i = 0; i < script_count + language_count; i++)
# 524| {
# 525|-> hb_tag_t expected_tag = hb_tag_from_string (va_arg (expected_tags, const char *), -1);
# 526| hb_tag_t actual_tag = i < script_count ? script_tags[i] : language_tags[i - script_count];
# 527| g_assert_cmphex (actual_tag, ==, expected_tag);
Error: GCC_ANALYZER_WARNING (CWE-685): [#def8]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:525:29: warning[-Wanalyzer-va-list-exhausted]: ‘expected_tags’ has no more arguments (2 consumed)
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:513:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:514:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:514:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:513:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:514:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:514:3: note: in expansion of macro ‘g_assert’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c:527:5: note: in expansion of macro ‘g_assert_cmphex’
# 523| for (i = 0; i < script_count + language_count; i++)
# 524| {
# 525|-> hb_tag_t expected_tag = hb_tag_from_string (va_arg (expected_tags, const char *), -1);
# 526| hb_tag_t actual_tag = i < script_count ? script_tags[i] : language_tags[i - script_count];
# 527| g_assert_cmphex (actual_tag, ==, expected_tag);
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 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-49.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | harfbuzz-8.5.0-1.fc41 |
diffbase-store-results-to | /tmp/tmpyh80reo1/harfbuzz-8.5.0-1.fc41.tar.xz |
diffbase-time-created | 2024-07-03 13:22:33 |
diffbase-time-finished | 2024-07-03 13:36:53 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpyh80reo1/harfbuzz-8.5.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpyh80reo1/harfbuzz-8.5.0-1.fc41.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-49.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | harfbuzz-8.3.0-5.fc40 |
store-results-to | /tmp/tmpo5r56kxa/harfbuzz-8.3.0-5.fc40.tar.xz |
time-created | 2024-07-03 13:05:46 |
time-finished | 2024-07-03 13:22:14 |
title | Fixed defects |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpo5r56kxa/harfbuzz-8.3.0-5.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpo5r56kxa/harfbuzz-8.3.0-5.fc40.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |