vte291-0.76.3-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
vte291-0.76.3-build/vte-0.76.3/redhat-linux-build/src/marshal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
vte291-0.76.3-build/vte-0.76.3/redhat-linux-build/tmp-introspect4ctjv779/Vte-3.91.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def3]
vte291-0.76.3-build/vte-0.76.3/redhat-linux-build/tmp-introspect4ctjv779/Vte-3.91.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: [#def4]
vte291-0.76.3-build/vte-0.76.3/redhat-linux-build/tmp-introspectxcqcbloy/Vte-2.91.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def5]
vte291-0.76.3-build/vte-0.76.3/redhat-linux-build/tmp-introspectxcqcbloy/Vte-2.91.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: [#def6]
vte291-0.76.3-build/vte-0.76.3/src/bidi.cc:214:58: warning[core.NullDereference]: Access to field 'c' results in a dereference of a null pointer (loaded from variable 'cell')
#  212|                   do {
#  213|                           G_GNUC_UNUSED auto prev_len = vte_bidi_chars_get_size (fribidi_chars_array);
#  214|->                         _vte_unistr_append_to_gunichars (cell->c, fribidi_chars_array);
#  215|                           vte_assert_cmpint (vte_bidi_chars_get_size (fribidi_chars_array), >, prev_len);
#  216|   

Error: CLANG_WARNING: [#def7]
vte291-0.76.3-build/vte-0.76.3/src/bidi.cc:680:33: warning[deadcode.DeadStores]: Value stored to 'tl' is never read
#  678|                                   }
#  679|                                   tv += cell->attr.columns();
#  680|->                                 tl += cell->attr.columns();
#  681|                           } else {
#  682|                                   /* LTR character directionality. */

Error: CPPCHECK_WARNING: [#def8]
vte291-0.76.3-build/vte-0.76.3/src/decoder-cat.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def9]
vte291-0.76.3-build/vte-0.76.3/src/drawing-cairo.cc:226:17: warning[deadcode.DeadStores]: Value stored to 'n_cr_glyphs' is never read
#  224|                                      cr_glyphs,
#  225|                                      n_cr_glyphs);
#  226|->                 n_cr_glyphs = 0;
#  227|           }
#  228|   }

Error: CPPCHECK_WARNING: [#def10]
vte291-0.76.3-build/vte-0.76.3/src/fonts-pangocairo.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def11]
vte291-0.76.3-build/vte-0.76.3/src/icu-converter.cc:121:9: warning[deadcode.DeadStores]: Value stored to 'target_size' is never read
#  119|   
#  120|           err.reset();
#  121|->         target_size = ucnv_fromUChars(m_charset_converter.get(),
#  122|                                         target_buffer.data(),
#  123|                                         target_buffer.capacity(),

Error: CPPCHECK_WARNING: [#def12]
vte291-0.76.3-build/vte-0.76.3/src/keymap.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
vte291-0.76.3-build/vte-0.76.3/src/mev.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-479): [#def14]
vte291-0.76.3-build/vte-0.76.3/src/mev.c:50:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘fprintf’ from within signal handler
vte291-0.76.3-build/vte-0.76.3/src/mev.c: scope_hint: In function ‘reset_mouse_tracking_mode’
#   48|   decset(int mode, gboolean value)
#   49|   {
#   50|-> 	fprintf(stdout, _VTE_CAP_CSI "?%d%c", mode, value ? 'h' : 'l');
#   51|   }
#   52|   

Error: CLANG_WARNING: [#def15]
vte291-0.76.3-build/vte-0.76.3/src/mev.c:130:21: warning[deadcode.DeadStores]: Value stored to 'shift' during its initialization is never read
#  128|   {
#  129|           int button = 0;
#  130|->         const char *shift = "", *control = "", *alt = "";
#  131|           gboolean motion = FALSE;
#  132|           int x, y;

Error: CLANG_WARNING: [#def16]
vte291-0.76.3-build/vte-0.76.3/src/mev.c:130:34: warning[deadcode.DeadStores]: Value stored to 'control' during its initialization is never read
#  128|   {
#  129|           int button = 0;
#  130|->         const char *shift = "", *control = "", *alt = "";
#  131|           gboolean motion = FALSE;
#  132|           int x, y;

Error: CLANG_WARNING: [#def17]
vte291-0.76.3-build/vte-0.76.3/src/mev.c:130:49: warning[deadcode.DeadStores]: Value stored to 'alt' during its initialization is never read
#  128|   {
#  129|           int button = 0;
#  130|->         const char *shift = "", *control = "", *alt = "";
#  131|           gboolean motion = FALSE;
#  132|           int x, y;

Error: CLANG_WARNING: [#def18]
vte291-0.76.3-build/vte-0.76.3/src/mev.c:377:3: warning[deadcode.DeadStores]: Value stored to 'stop' is never read
#  375|   		FD_ZERO(&in_fds);
#  376|   		FD_SET(STDIN_FILENO, &in_fds);
#  377|-> 		stop = TRUE;
#  378|   		switch (select(STDIN_FILENO + 1, &in_fds, NULL, NULL, NULL)) {
#  379|   		case 1:

Error: CPPCHECK_WARNING: [#def19]
vte291-0.76.3-build/vte-0.76.3/src/minifont.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def20]
vte291-0.76.3-build/vte-0.76.3/src/parser-test.cc:262:14: warning[deadcode.DeadStores]: Value stored to 'buf' during its initialization is never read
#  260|   
#  261|           size_t len;
#  262|->         auto buf = vte_seq_string_get(&str, &len);
#  263|           g_assert_cmpuint(len, ==, 0);
#  264|   

Error: CLANG_WARNING: [#def21]
vte291-0.76.3-build/vte-0.76.3/src/parser-test.cc:269:17: warning[deadcode.DeadStores]: Value stored to 'buf' is never read
#  267|                   g_assert_true(rv);
#  268|   
#  269|->                 buf = vte_seq_string_get(&str, &len);
#  270|                   g_assert_cmpuint(len, ==, i + 1);
#  271|           }

Error: CLANG_WARNING: [#def22]
vte291-0.76.3-build/vte-0.76.3/src/parser-test.cc:282:9: warning[deadcode.DeadStores]: Value stored to 'buf' is never read
#  280|   
#  281|           vte_seq_string_reset(&str);
#  282|->         buf = vte_seq_string_get(&str, &len);
#  283|           g_assert_cmpuint(len, ==, 0);
#  284|   

Error: CPPCHECK_WARNING: [#def23]
vte291-0.76.3-build/vte-0.76.3/src/pty.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def24]
vte291-0.76.3-build/vte-0.76.3/src/pty.cc:188:22: warning[deadcode.DeadStores]: Value stored to 'errsv' during its initialization is never read
#  186|           sigemptyset(&set);
#  187|           if (pthread_sigmask(SIG_SETMASK, &set, nullptr) == -1) {
#  188|->                 auto errsv = vte::libc::ErrnoSaver{};
#  189|                   _vte_debug_print(VTE_DEBUG_PTY, "%s failed: %s\n",
#  190|                                    "pthread_sigmask", g_strerror(errsv));

Error: CLANG_WARNING: [#def25]
vte291-0.76.3-build/vte-0.76.3/src/pty.cc:210:30: warning[deadcode.DeadStores]: Value stored to 'errsv' during its initialization is never read
#  208|                   _vte_debug_print (VTE_DEBUG_PTY, "Starting new session\n");
#  209|                   if (setsid() == -1) {
#  210|->                         auto errsv = vte::libc::ErrnoSaver{};
#  211|                           _vte_debug_print(VTE_DEBUG_PTY, "%s failed: %s\n",
#  212|                                            "setsid", g_strerror(errsv));

Error: CLANG_WARNING: [#def26]
vte291-0.76.3-build/vte-0.76.3/src/pty.cc:228:30: warning[deadcode.DeadStores]: Value stored to 'errsv' during its initialization is never read
#  226|           if (!(m_flags & VTE_PTY_NO_CTTY)) {
#  227|                   if (ioctl(peer_fd, TIOCSCTTY, peer_fd) != 0) {
#  228|->                         auto errsv = vte::libc::ErrnoSaver{};
#  229|                           _vte_debug_print(VTE_DEBUG_PTY, "%s failed: %s\n",
#  230|                                            "ioctl(TIOCSCTTY)", g_strerror(errsv));

Error: CPPCHECK_WARNING: [#def27]
vte291-0.76.3-build/vte-0.76.3/src/reflect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def28]
vte291-0.76.3-build/vte-0.76.3/src/reflect.c:96:18: warning[core.NullDereference]: Access to field 'len' results in a dereference of a null pointer (loaded from variable 'contents')
#   94|   	caret = (guint)atk_text_get_caret_offset(ATK_TEXT(obj));
#   95|   	s = g_string_new(NULL);
#   96|-> 	for (i = 0; i < contents->len; i++) {
#   97|   		if (i == caret) {
#   98|   			s = g_string_append(s, "[CARET]");

Error: CLANG_WARNING: [#def29]
vte291-0.76.3-build/vte-0.76.3/src/reflect.c:311:9: warning[core.NullDereference]: Access to field 'len' results in a dereference of a null pointer (loaded from variable 'contents')
#  309|   		if (text != NULL) {
#  310|   			for (p = text;
#  311|-> 			     contents->len < count;
#  312|   			     p = g_utf8_next_char(p)) {
#  313|   				c = g_utf8_get_char(p);

Error: CPPCHECK_WARNING: [#def30]
vte291-0.76.3-build/vte-0.76.3/src/refptr-test.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def31]
vte291-0.76.3-build/vte-0.76.3/src/refptr-test.cc:81:23: warning[cplusplus.Move]: Method called on moved-from object 'ptr1'
#   79|   
#   80|           auto ptr2 = std::move(ptr1);
#   81|->         g_assert_true(ptr1.get() == nullptr);
#   82|           g_assert_true(ptr2.get() == obj1.obj);
#   83|   

Error: CPPCHECK_WARNING: [#def32]
vte291-0.76.3-build/vte-0.76.3/src/ring.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def33]
vte291-0.76.3-build/vte-0.76.3/src/ring.cc:730:13: warning[core.NullDereference]: Dereference of null pointer
#  728|                   idx = get_hyperlink_idx_no_update_current(*hyperlink);
#  729|           }
#  730|->         if (**hyperlink == '\0')
#  731|                   *hyperlink = nullptr;
#  732|           if (update_hover_idx)

Error: CLANG_WARNING: [#def34]
vte291-0.76.3-build/vte-0.76.3/src/ringview.cc:244:25: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
#  242|                   row_data = m_ring->contains(row) ? m_ring->index(row) : nullptr;
#  243|                   if (G_LIKELY (row_data != nullptr)) {
#  244|->                         _vte_row_data_copy (row_data, m_rows[m_rows_len]);
#  245|                           /* Make sure that the extracted data is not wider than the screen,
#  246|                            * something that can happen if the window was narrowed with rewrapping disabled.

Error: CLANG_WARNING: [#def35]
vte291-0.76.3-build/vte-0.76.3/src/ringview.cc:260:25: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  258|                           }
#  259|                   } else {
#  260|->                         _vte_row_data_clear (m_rows[m_rows_len]);
#  261|                   }
#  262|                   m_rows_len++;

Error: CLANG_WARNING: [#def36]
vte291-0.76.3-build/vte-0.76.3/src/ringview.cc:278:26: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  276|           row = top;
#  277|           while (row < m_top + m_rows_len) {
#  278|->                 row_data = m_rows[row - m_top];
#  279|                   if (!row_data->attr.soft_wrapped || row == m_top + m_rows_len - 1) {
#  280|                           /* Found a paragraph from @top to @row, inclusive. */

Error: CPPCHECK_WARNING: [#def37]
vte291-0.76.3-build/vte-0.76.3/src/slowcat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
vte291-0.76.3-build/vte-0.76.3/src/slowcat.c: scope_hint: In function ‘catfile’
vte291-0.76.3-build/vte-0.76.3/src/slowcat.c:72:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
#   70|   	g_free(buf);
#   71|   
#   72|-> 	if (fp != stdin) {
#   73|   		fclose(fp);
#   74|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
vte291-0.76.3-build/vte-0.76.3/src/slowcat.c:72:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
#   70|   	g_free(buf);
#   71|   
#   72|-> 	if (fp != stdin) {
#   73|   		fclose(fp);
#   74|   	}

Error: CPPCHECK_WARNING: [#def40]
vte291-0.76.3-build/vte-0.76.3/src/spawn.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def41]
vte291-0.76.3-build/vte-0.76.3/src/tabstops-test.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def42]
vte291-0.76.3-build/vte-0.76.3/src/unicode-width-test.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def43]
vte291-0.76.3-build/vte-0.76.3/src/utf8-test.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-1164): [#def44]
vte291-0.76.3-build/vte-0.76.3/src/vte.cc: scope_hint: In member function ‘void vte::terminal::Terminal::process_incoming_utf8(ProcessingContext&, vte::base::Chunk&)’
vte291-0.76.3-build/vte-0.76.3/src/vte.cc:4172:1: warning[-Wunused-label]: label ‘switched_data_syntax’ defined but not used
# 4172 | switched_data_syntax:
#      | ^~~~~~~~~~~~~~~~~~~~
# 4170|   #pragma GCC diagnostic push
# 4171|   #pragma GCC diagnostic ignored "-Wunused-label"
# 4172|-> switched_data_syntax:
# 4173|   #pragma GCC diagnostic pop
# 4174|   

Error: COMPILER_WARNING (CWE-1164): [#def45]
vte291-0.76.3-build/vte-0.76.3/src/vte.cc: scope_hint: In member function ‘void vte::terminal::Terminal::process_incoming_pcterm(ProcessingContext&, vte::base::Chunk&)’
vte291-0.76.3-build/vte-0.76.3/src/vte.cc:4300:2: warning[-Wunused-label]: label ‘switched_data_syntax’ defined but not used
# 4300 |  switched_data_syntax:
#      |  ^~~~~~~~~~~~~~~~~~~~
# 4298|   #pragma GCC diagnostic push
# 4299|   #pragma GCC diagnostic ignored "-Wunused-label"
# 4300|->  switched_data_syntax:
# 4301|   #pragma GCC diagnostic pop
# 4302|   

Error: CLANG_WARNING: [#def46]
vte291-0.76.3-build/vte-0.76.3/src/vteaccess.cc:1261:4: warning[deadcode.DeadStores]: Value stored to 'line' is never read
# 1259|   			 * i'th line is before the offset, then i could be the
# 1260|   			 * line we're looking for. */
# 1261|-> 			line = 0;
# 1262|   			for (line = 0;
# 1263|   			     line < priv->snapshot_linebreaks->len;

Error: CLANG_WARNING: [#def47]
vte291-0.76.3-build/vte-0.76.3/src/vteseq.cc:9097:27: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 9095|                   seq.collect(1, {&height, &width});
# 9096|   
# 9097|->                 if (width != -1 && height != -1) {
# 9098|                           _vte_debug_print(VTE_DEBUG_EMULATION,
# 9099|                                            "Resizing window to %dx%d pixels, grid size %dx%d.\n",

Error: CLANG_WARNING: [#def48]
vte291-0.76.3-build/vte-0.76.3/src/vteseq.cc:9120:27: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 9118|                   seq.collect(1, {&height, &width});
# 9119|   
# 9120|->                 if (width != -1 && height != -1) {
# 9121|                           emit_resize_window(width, height);
# 9122|                   }

Error: CPPCHECK_WARNING: [#def49]
vte291-0.76.3-build/vte-0.76.3/src/vtestream.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def50]
vte291-0.76.3-build/vte-0.76.3/src/vtetypes.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def51]
vte291-0.76.3-build/vte-0.76.3/src/vteunistr.h:125: error[legacyUninitvar]: Uninitialized variable: first
#  123|           }
#  124|   
#  125|->         outbuf[0] = c | first;
#  126|   
#  127|           // GLib can do an inlined append()

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-178.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namevte291-0.76.3-1.fc41
store-results-to/tmp/tmpuycu96g4/vte291-0.76.3-1.fc41.tar.xz
time-created2024-07-03 18:21:13
time-finished2024-07-03 18:24:46
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpuycu96g4/vte291-0.76.3-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpuycu96g4/vte291-0.76.3-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9