harfbuzz-8.5.0-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/redhat-linux-build/src/hb-gobject-enums.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/redhat-linux-build/tmp-introspectzhcg3cck/HarfBuzz-0.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def3]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/redhat-linux-build/tmp-introspectzhcg3cck/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: CLANG_WARNING: [#def4]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-ot-face.cc:42: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-ot-layout-gsub-table.hh:32: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/OT/Layout/GSUB/GSUB.hh:6: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/OT/Layout/GSUB/SubstLookup.hh:5: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/OT/Layout/GSUB/SubstLookupSubTable.hh:12: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/OT/Layout/GSUB/ReverseChainSingleSubst.hh:5: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.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: CLANG_WARNING: [#def5]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-subset-repacker.cc:25: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-repacker.hh:34: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/graph/gsubgpos-graph.hh:31: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/graph/pairpos-graph.hh:285:9: warning[deadcode.DeadStores]: Value stored to 'class_def_1_size' is never read
#  283|   
#  284|           estimator.reset();
#  285|->         class_def_1_size = estimator.add_class_def_size(i);
#  286|           coverage_size = estimator.coverage_size();
#  287|           visited.clear (); // node sharing isn't allowed between splits.

Error: CLANG_WARNING: [#def6]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/graph/pairpos-graph.hh:286:9: warning[deadcode.DeadStores]: Value stored to 'coverage_size' is never read
#  284|           estimator.reset();
#  285|           class_def_1_size = estimator.add_class_def_size(i);
#  286|->         coverage_size = estimator.coverage_size();
#  287|           visited.clear (); // node sharing isn't allowed between splits.
#  288|         }

Error: CPPCHECK_WARNING (CWE-457): [#def7]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-algs.hh:322: error[legacyUninitvar]: Uninitialized variable: pos++->v
#  320|   	  while (pos != end)
#  321|   	  {
#  322|-> 	    v  = pos++->v;
#  323|   	    h ^= mix(v);
#  324|   	    h *= m;

Error: CPPCHECK_WARNING (CWE-457): [#def8]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-algs.hh:977: warning[uninitvar]: Uninitialized variable: dst
#  975|   {
#  976|     /* It's illegal to pass 0 as size to memcpy. */
#  977|->   if (unlikely (!len)) return dst;
#  978|     return memcpy (dst, src, len);
#  979|   }

Error: CPPCHECK_WARNING (CWE-457): [#def9]
harfbuzz-8.5.0-build/harfbuzz-8.5.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): [#def10]
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def11]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-blob.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-buffer-serialize.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-buffer-verify.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def14]
harfbuzz-8.5.0-build/harfbuzz-8.5.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.5.0-build/harfbuzz-8.5.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.5.0-build/harfbuzz-8.5.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);
#      |                                                                       ^~
#   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: [#def15]
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def16]
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def17]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-cairo-utils.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def18]
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def19]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-common.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-draw.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-fallback-shape.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-glib.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-gobject-structs.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-graphite2.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-icu.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-401): [#def26]
harfbuzz-8.5.0-build/harfbuzz-8.5.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): [#def27]
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def28]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-map.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-686): [#def29]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-map.hh:67: error[memsetClass]: Using 'memcpy' on struct that contains a 'std::string'.
#   65|         prime = o.prime;
#   66|         max_chain_length = o.max_chain_length;
#   67|->       memcpy (items, o.items, sizeof (item_t) * (mask + 1));
#   68|         return;
#   69|       }

Error: CPPCHECK_WARNING: [#def30]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-number.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def31]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-ot-shaper-arabic.cc:256: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.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: CPPCHECK_WARNING: [#def32]
harfbuzz-8.5.0-build/harfbuzz-8.5.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.5.0-build/harfbuzz-8.5.0/src/hb-ot-tag.cc:338:7: warning[core.NullDereference]: Dereference of null pointer
#  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.5.0-build/harfbuzz-8.5.0/src/hb-font.cc:38: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.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.5.0-build/harfbuzz-8.5.0/src/hb-ot-face.cc:30: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-ot-glyf-table.hh:33: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/OT/glyf/glyf.hh:8: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-ot-var-gvar-table.hh:700:6: warning[deadcode.DeadStores]: Value stored to 'flush' is never read
#  698|   	    for (unsigned int i = phantom_only ? count - 4 : 0; i < count; i++)
#  699|   	      points.arrayZ[i].translate (deltas.arrayZ[i]);
#  700|-> 	    flush = false;
#  701|   
#  702|   	  }

Error: CPPCHECK_WARNING: [#def36]
harfbuzz-8.5.0-build/harfbuzz-8.5.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.5.0-build/harfbuzz-8.5.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.5.0-build/harfbuzz-8.5.0/src/hb-paint.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def39]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/graph/test-classdef-graph.cc:27: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/graph/gsubgpos-context.hh:27: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/graph/graph.hh:29: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-serialize.hh:780:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'p'
#  778|       hb_memcpy (p, this->start, this->head - this->start);
#  779|       hb_memcpy (p + (this->head - this->start), this->tail, this->end - this->tail);
#  780|->     return hb_bytes_t (p, len);
#  781|     }
#  782|     template <typename Type>

Error: CPPCHECK_WARNING: [#def40]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-set.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def41]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-shape-plan.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def42]
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def43]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-shape.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def44]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-shaper.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def45]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-subset-instancer-solver.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def46]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-ucd.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def47]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/hb-unicode.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def48]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-algs.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def49]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-array.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def50]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-bimap.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def51]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-buffer-serialize.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def52]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-gpos-size-params.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def53]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-gsub-would-substitute.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def54]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-machinery.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def55]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-map.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def56]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-map.cc:61:13: warning[cplusplus.Move]: Method called on moved-from object 's'
#   59|       s.set (1, 2);
#   60|       hb_map_t v (std::move (s));
#   61|->     assert (s.get_population () == 0);
#   62|       assert (v.get_population () == 1);
#   63|     }

Error: CLANG_WARNING: [#def57]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-map.cc:71:13: warning[cplusplus.Move]: Method called on moved-from object 's'
#   69|       hb_map_t v;
#   70|       v = std::move (s);
#   71|->     assert (s.get_population () == 0);
#   72|       assert (v.get_population () == 1);
#   73|     }

Error: CLANG_WARNING: [#def58]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-map.cc:87:13: warning[cplusplus.Move]: Method called on moved-from object 's'
#   85|       hb_map_t v2 (std::move (s));
#   86|   
#   87|->     assert (s.get_population () == 0);
#   88|       assert (v0.get_population () == 2);
#   89|       assert (v1.get_population () == 2);

Error: CPPCHECK_WARNING: [#def59]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-multimap.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def60]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-number.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def61]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-ot-glyphname.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def62]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-ot-meta.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def63]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-ot-name.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def64]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-priority-queue.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def65]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-set.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def66]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-set.cc:54:13: warning[cplusplus.Move]: Method called on moved-from object 's'
#   52|       hb_set_t s {1, 2};
#   53|       hb_set_t v (std::move (s));
#   54|->     assert (s.get_population () == 0);
#   55|       assert (hb_len (hb_iter (s)) == 0);
#   56|       assert (v.get_population () == 2);

Error: CLANG_WARNING: [#def67]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-set.cc:64:13: warning[cplusplus.Move]: Method called on moved-from object 's'
#   62|       hb_set_t v;
#   63|       v = std::move (s);
#   64|->     assert (s.get_population () == 0);
#   65|       assert (v.get_population () == 2);
#   66|     }

Error: CLANG_WARNING: [#def68]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-set.cc:80:13: warning[cplusplus.Move]: Method called on moved-from object 's'
#   78|       hb_set_t v2 (std::move (s));
#   79|   
#   80|->     assert (s.get_population () == 0);
#   81|       assert (v0.get_population () == 2);
#   82|       assert (v1.get_population () == 2);

Error: CPPCHECK_WARNING: [#def69]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-subset-instancer-solver.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def70]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-unicode-ranges.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def71]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test-vector.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def72]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/src/test.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def73]
harfbuzz-8.5.0-build/harfbuzz-8.5.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): [#def74]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-blob.c: scope_hint: In function ‘fixture_init’
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def75]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-buffer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def76]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def77]
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def78]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-draw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def79]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-font.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def80]
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def81]
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def82]
harfbuzz-8.5.0-build/harfbuzz-8.5.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): [#def83]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-map.c: scope_hint: In function ‘test_map_userdata’
harfbuzz-8.5.0-build/harfbuzz-8.5.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): [#def84]
harfbuzz-8.5.0-build/harfbuzz-8.5.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.5.0-build/harfbuzz-8.5.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): [#def85]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-multithread.c: scope_hint: In function ‘test_body’
harfbuzz-8.5.0-build/harfbuzz-8.5.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): [#def86]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-multithread.c:108:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘threads’ where non-null expected
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def87]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-object.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def88]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-ot-color.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def89]
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def90]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-ot-layout.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def91]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-ot-math.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def92]
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def93]
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def94]
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def95]
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def96]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-ot-metrics.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def97]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-ot-name.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def98]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-ot-tag.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def99]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-paint.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def100]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-set.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def101]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-shape.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def102]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-subset.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def103]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/api/test-unicode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def104]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/test/threads/hb-shape-threads.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-823): [#def105]
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def106]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/util/hb-view.cc:33: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/util/view-cairo.hh:32: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/util/helper-cairo.hh:40: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.0/util/helper-cairo-ansi.hh:34: included_from: Included from here.
harfbuzz-8.5.0-build/harfbuzz-8.5.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: [#def107]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/util/hb-info.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def108]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/util/hb-ot-shape-closure.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def109]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/util/hb-shape.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def110]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/util/hb-subset.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def111]
harfbuzz-8.5.0-build/harfbuzz-8.5.0/util/hb-view.cc: 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
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-49.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameharfbuzz-8.5.0-1.fc41
store-results-to/tmp/tmpyh80reo1/harfbuzz-8.5.0-1.fc41.tar.xz
time-created2024-07-03 13:22:33
time-finished2024-07-03 13:36:53
toolcsmock
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'
tool-versioncsmock-3.5.3-1.el9