harfbuzz-8.3.0-5.fc40
List of Defects
Error: CLANG_WARNING: [#def1]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-ot-face.cc:42: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-ot-layout-gsub-table.hh:32: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/OT/Layout/GSUB/GSUB.hh:6: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/OT/Layout/GSUB/SubstLookup.hh:5: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/OT/Layout/GSUB/SubstLookupSubTable.hh:12: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/OT/Layout/GSUB/ReverseChainSingleSubst.hh:5: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/OT/Layout/GSUB/ReverseChainSingleSubstFormat1.hh:102:5: warning[deadcode.DeadStores]: Value stored to 'count' is never read
# 100|
# 101| const auto &substitute = StructAfter<decltype (substituteX)> (lookahead);
# 102|-> count = substitute.len;
# 103| c->output->add_array (substitute.arrayZ, substitute.len);
# 104| }
Error: CPPCHECK_WARNING (CWE-457): [#def2]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-algs.hh:318: error[legacyUninitvar]: Uninitialized variable: pos++->v
# 316| while (pos != end)
# 317| {
# 318|-> v = pos++->v;
# 319| h ^= mix(v);
# 320| h *= m;
Error: CPPCHECK_WARNING (CWE-457): [#def3]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-algs.hh:973: warning[uninitvar]: Uninitialized variable: dst
# 971| {
# 972| /* It's illegal to pass 0 as size to memcpy. */
# 973|-> if (unlikely (!len)) return dst;
# 974| return memcpy (dst, src, len);
# 975| }
Error: CPPCHECK_WARNING (CWE-457): [#def4]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-bit-page.hh:62: warning[uninitvar]: Uninitialized variable: r
# 60| for (unsigned int i = 0; i < ARRAY_LENGTH (v); i++)
# 61| r.v[i] = op (v[i]);
# 62|-> return r;
# 63| }
# 64| template <typename Op>
Error: CPPCHECK_WARNING (CWE-457): [#def5]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-bit-page.hh:70: warning[uninitvar]: Uninitialized variable: r
# 68| for (unsigned int i = 0; i < ARRAY_LENGTH (v); i++)
# 69| r.v[i] = op (v[i], o.v[i]);
# 70|-> return r;
# 71| }
# 72| hb_vector_size_t operator | (const hb_vector_size_t &o) const
Error: CPPCHECK_WARNING: [#def6]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-blob.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def7]
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: [#def8]
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: CPPCHECK_WARNING: [#def9]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-buffer-serialize.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def10]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-buffer-verify.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def11]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-buffer-verify.cc: scope_hint: In member function ‘hb_buffer_t::verify(hb_buffer_t*, hb_font_t*, hb_feature_t const*, unsigned int, char const* const*)’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-buffer-verify.cc:34:29: warning[-Wformat-overflow=]: ‘%s’ directive argument is null
# 34 | #define BUFFER_VERIFY_ERROR "buffer verify error: "
# | ^
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-buffer-verify.cc:415:71: note: format string is defined here
# 415 | buffer_verify_error (this, font, BUFFER_VERIFY_ERROR "text was: %s.", bytes.arrayZ);
# | ^~
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb.hh:541: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-buffer.hh:33: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-buffer.cc:30: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-object.hh: scope_hint: In instantiation of ‘bool hb_object_set_user_data(Type*, hb_user_data_key_t*, void*, hb_destroy_func_t, hb_bool_t) [with Type = hb_buffer_t; hb_user_data_key_t = hb_user_data_key_t; hb_destroy_func_t = void (*)(void*); hb_bool_t = int]’
#/builddir/build/BUILD/harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-buffer.cc:872:34: required from here
# 872 | return hb_object_set_user_data (buffer, key, data, destroy, replace);
# | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 32|
# 33|
# 34|-> #define BUFFER_VERIFY_ERROR "buffer verify error: "
# 35| static inline void
# 36| buffer_verify_error (hb_buffer_t *buffer,
Error: CLANG_WARNING: [#def12]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-buffer-verify.cc:174:5: warning[deadcode.DeadStores]: Value stored to 'start' is never read
# 172| hb_buffer_append (reconstruction, fragment, 0, -1);
# 173|
# 174|-> start = end;
# 175| if (forward)
# 176| text_start = text_end;
Error: CLANG_WARNING: [#def13]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-buffer-verify.cc:305:7: warning[deadcode.DeadStores]: Value stored to 'start' is never read
# 303| hb_buffer_append (fragments[fragment_idx], text_buffer, text_start, text_end);
# 304|
# 305|-> start = end;
# 306| text_start = text_end;
# 307| fragment_idx = 1 - fragment_idx;
Error: CPPCHECK_WARNING: [#def14]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-cairo-utils.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def15]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-cairo-utils.cc:728:32: warning[core.UndefinedBinaryOperatorResult]: The left operand of '-' is a garbage value due to array index out of bounds
# 726| float span;
# 727|
# 728|-> span = angles[n_stops - 1] - angles[0];
# 729| k = 0;
# 730| if (angles[0] >= 0)
Error: CPPCHECK_WARNING: [#def16]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-common.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def17]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-draw.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def18]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-fallback-shape.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def19]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-glib.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def20]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-gobject-enums.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def21]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-gobject-structs.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def22]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-graphite2.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def23]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-icu.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-401): [#def24]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-machinery.hh:258: error[memleak]: Memory leak: p
# 256| Stored *p = (Stored *) hb_calloc (1, sizeof (Stored));
# 257| if (likely (p))
# 258|-> p = new (p) Stored (data);
# 259| return p;
# 260| }
Error: CPPCHECK_WARNING (CWE-401): [#def25]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-machinery.hh:265: error[memleak]: Memory leak: p
# 263| Stored *p = (Stored *) hb_calloc (1, sizeof (Stored));
# 264| if (likely (p))
# 265|-> p = new (p) Stored ();
# 266| return p;
# 267| }
Error: CPPCHECK_WARNING: [#def26]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-map.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def27]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-number.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def28]
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: [#def29]
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: [#def30]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-ot-shaper-arabic.cc:256: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-ot-shaper-arabic-fallback.hh:363:3: warning[unix.Malloc]: Argument to free() is the address of the global variable '_hb_NullPool', which is not memory allocated by malloc()
# 361| }
# 362|
# 363|-> hb_free (fallback_plan);
# 364| }
# 365|
Error: CLANG_WARNING: [#def31]
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: CPPCHECK_WARNING: [#def32]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-ot-tag.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def33]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-ot-tag.cc:338:7: warning[core.NullDereference]: Dereference of null pointer
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb.hh:541: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-set.hh:31: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-set.cc:27: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-object.hh: scope_hint: In instantiation of ‘bool hb_object_set_user_data(Type*, hb_user_data_key_t*, void*, hb_destroy_func_t, hb_bool_t) [with Type = hb_set_t; hb_user_data_key_t = hb_user_data_key_t; hb_destroy_func_t = void (*)(void*); hb_bool_t = int]’
#/builddir/build/BUILD/harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-set.cc:132:34: required from here
# 132 | return hb_object_set_user_data (set, key, data, destroy, replace);
# | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 336| unsigned int i;
# 337| while (tag_idx != 0 &&
# 338|-> ot_languages[tag_idx].language == ot_languages[tag_idx - 1].language)
# 339| tag_idx--;
# 340| for (i = 0;
Error: CLANG_WARNING: [#def34]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-font.cc:38: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-ot-var-avar-table.hh:357:31: warning[core.NullDereference]: Array access (from variable 'coords') results in a null pointer dereference
# 355| for (unsigned int i = 0; i < count; i++)
# 356| {
# 357|-> coords[i] = map->unmap (coords[i]);
# 358| map = &StructAfter<SegmentMaps> (*map);
# 359| }
Error: CLANG_WARNING: [#def35]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/main.cc:350: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-static.cc:38: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-ot-glyf-table.hh:33: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/OT/glyf/glyf.hh:8: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-ot-var-gvar-table.hh:688:6: warning[deadcode.DeadStores]: Value stored to 'flush' is never read
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb.hh:541: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-face.cc:29: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-object.hh: scope_hint: In instantiation of ‘bool hb_object_set_user_data(Type*, hb_user_data_key_t*, void*, hb_destroy_func_t, hb_bool_t) [with Type = hb_face_t; hb_user_data_key_t = hb_user_data_key_t; hb_destroy_func_t = void (*)(void*); hb_bool_t = int]’
#/builddir/build/BUILD/harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-face.cc:336:34: required from here
# 336 | return hb_object_set_user_data (face, key, data, destroy, replace);
# | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 686| for (unsigned int i = phantom_only ? count - 4 : 0; i < count; i++)
# 687| points.arrayZ[i].translate (deltas.arrayZ[i]);
# 688|-> flush = false;
# 689|
# 690| }
Error: CPPCHECK_WARNING: [#def36]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-outline.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def37]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-paint-extents.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def38]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-paint.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def39]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-set.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def40]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-shape-plan.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def41]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-shape-plan.cc:323:3: warning[unix.Malloc]: Argument to free() is the address of the global variable '_hb_NullPool', which is not memory allocated by malloc()
# 321| if (!hb_object_destroy (shape_plan)) return;
# 322|
# 323|-> hb_free (shape_plan);
# 324| }
# 325|
Error: CPPCHECK_WARNING: [#def42]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-shape.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def43]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-shaper.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def44]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-subset-instancer-solver.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def45]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-ucd.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def46]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/hb-unicode.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def47]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/test-buffer-serialize.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def48]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/test-gpos-size-params.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def49]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/test-gsub-would-substitute.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def50]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/test-ot-glyphname.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def51]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/test-ot-meta.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def52]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/test-ot-name.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def53]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/test.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def54]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/tmp-introspectq2iuxg35/HarfBuzz-0.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def55]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/src/tmp-introspectq2iuxg35/HarfBuzz-0.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
Error: CPPCHECK_WARNING: [#def56]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-blob.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-blob.c: scope_hint: In function ‘fixture_init’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-blob.c:167:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
# 165| case HB_MEMORY_MODE_WRITABLE:
# 166| data = malloc (sizeof (test_data));
# 167|-> memcpy ((char *) data, test_data, sizeof (test_data));
# 168| len = sizeof (test_data);
# 169| free_func = (hb_destroy_func_t) free_up_free;
Error: CPPCHECK_WARNING: [#def58]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-buffer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def59]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def60]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-cplusplus.cc:99:3: warning[cplusplus.Move]: Method called on moved-from object 'pb'
# 97| assert (!bool (pb));
# 98|
# 99|-> pb.reference ();
# 100| pb.destroy ();
# 101|
Error: CPPCHECK_WARNING: [#def61]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-draw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def62]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-font.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def63]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ft.c:40:8: warning[deadcode.DeadStores]: Although the value stored to 'ft_error' is used in the enclosing expression, the value is never actually read from 'ft_error'
# 38| {
# 39| FT_Error ft_error;
# 40|-> if ((ft_error = FT_Init_FreeType (&ft_library)))
# 41| abort ();
# 42| }
Error: CLANG_WARNING: [#def64]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ft.c:62:8: warning[deadcode.DeadStores]: Although the value stored to 'ft_error' is used in the enclosing expression, the value is never actually read from 'ft_error'
# 60|
# 61| FT_Error ft_error;
# 62|-> if ((ft_error = FT_New_Face (ft_library, path, 0, &ft_face))) {
# 63| g_free (path);
# 64| abort();
Error: CLANG_WARNING: [#def65]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ft.c:68:8: warning[deadcode.DeadStores]: Although the value stored to 'ft_error' is used in the enclosing expression, the value is never actually read from 'ft_error'
# 66| g_free (path);
# 67|
# 68|-> if ((ft_error = FT_Set_Char_Size (ft_face, 2000, 1000, 0, 0)))
# 69| abort ();
# 70|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-map.c: scope_hint: In function ‘test_map_userdata’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-map.c:73:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
# 71| int *data = (int *) malloc (sizeof (int));
# 72| int *data2;
# 73|-> *data = 3123;
# 74| hb_map_set_user_data (m, &key[0], data, free, TRUE);
# 75| g_assert_cmpint (*((int *) hb_map_get_user_data (m, &key[0])), ==, 3123);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-map.c:78:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data2’
/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-map.c:75:3: note: in expansion of macro ‘g_assert_cmpint’
# 76|
# 77| data2 = (int *) malloc (sizeof (int));
# 78|-> *data2 = 6343;
# 79| hb_map_set_user_data (m, &key[0], data2, free, FALSE);
# 80| g_assert_cmpint (*((int *) hb_map_get_user_data (m, &key[0])), ==, 3123);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-multithread.c: scope_hint: In function ‘test_body’
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-multithread.c:107:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffers’
# 105| {
# 106| hb_buffer_t *buffer = hb_buffer_create ();
# 107|-> buffers[i] = buffer;
# 108| pthread_create (&threads[i], NULL, thread_func, buffer);
# 109| }
Error: GCC_ANALYZER_WARNING (CWE-688): [#def69]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-multithread.c:108:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘threads’ where non-null expected
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-multithread.c:26: included_from: Included from here.
/usr/include/pthread.h:202:12: note: argument 1 of ‘pthread_create’ must be non-null
# 106| hb_buffer_t *buffer = hb_buffer_create ();
# 107| buffers[i] = buffer;
# 108|-> pthread_create (&threads[i], NULL, thread_func, buffer);
# 109| }
# 110|
Error: CPPCHECK_WARNING: [#def70]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-object.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def71]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-color.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def72]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-extents-cff.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def73]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-layout.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def74]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-math.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def75]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-math.c:44:8: warning[deadcode.DeadStores]: Although the value stored to 'ft_error' is used in the enclosing expression, the value is never actually read from 'ft_error'
# 42| {
# 43| FT_Error ft_error;
# 44|-> if ((ft_error = FT_Init_FreeType (&ft_library)))
# 45| abort();
# 46| }
Error: CLANG_WARNING: [#def76]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-math.c:64:8: warning[deadcode.DeadStores]: Although the value stored to 'ft_error' is used in the enclosing expression, the value is never actually read from 'ft_error'
# 62|
# 63| FT_Error ft_error;
# 64|-> if ((ft_error = FT_New_Face (ft_library, path, 0, &ft_face))) {
# 65| g_free(path);
# 66| abort();
Error: CLANG_WARNING: [#def77]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-math.c:70:8: warning[deadcode.DeadStores]: Although the value stored to 'ft_error' is used in the enclosing expression, the value is never actually read from 'ft_error'
# 68| g_free(path);
# 69|
# 70|-> if ((ft_error = FT_Set_Char_Size (ft_face, 2000, 1000, 0, 0)))
# 71| abort();
# 72| hb_font = hb_ft_font_create (ft_face, NULL);
Error: CPPCHECK_WARNING: [#def78]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-metrics-tt-var.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def79]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-metrics.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def80]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-name.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def81]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-ot-tag.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-685): [#def82]
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): [#def83]
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): [#def84]
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);
Error: CPPCHECK_WARNING: [#def85]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-paint.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def86]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-set.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def87]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-shape.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def88]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-subset.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def89]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/test/api/test-unicode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-823): [#def90]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/util/ansi-print.hh:177: error[arrayIndexOutOfBounds]: Array 'freq[8]' accessed at index 8, which is out of bounds.
# 175| if (i != bg && (fg == 8 || freq[fg] < freq[i]))
# 176| fg = i;
# 177|-> if (freq[fg] == 0) {
# 178| fg = bg;
# 179| unicolor = true;
Error: CLANG_WARNING: [#def91]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/util/hb-view.cc:33: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/util/view-cairo.hh:32: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/util/helper-cairo.hh:40: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/util/helper-cairo-ansi.hh:34: included_from: Included from here.
harfbuzz-8.3.0-build/harfbuzz-8.3.0/util/ansi-print.hh:363:2: warning[deadcode.DeadStores]: Value stored to 'score' is never read
# 361| }
# 362| if (c) {
# 363|-> score = qs;
# 364| *inverse = inv;
# 365| best_c = c;
Error: CPPCHECK_WARNING: [#def92]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/util/hb-info.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def93]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/util/hb-ot-shape-closure.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def94]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/util/hb-shape.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def95]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/util/hb-subset.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def96]
harfbuzz-8.3.0-build/harfbuzz-8.3.0/util/hb-view.cc: 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-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 |
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 |