public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: Fix <tab>-completion crash (Gary Benson, RH BZ 1398387).
Date: Sat, 27 Jun 2026 23:58:07 GMT	[thread overview]
Message-ID: <178260468784.1.14467159625354502393.rpms-gdb-8d40388f0af7@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 8d40388f0af79a486b543237b0ca33c597f35fbc
Author : Jan Kratochvil <jan.kratochvil@redhat.com>
Date   : 2017-02-15T17:06:33+01:00
Stats  : +41/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/gdb/c/8d40388f0af79a486b543237b0ca33c597f35fbc?branch=gdb-17.2-rebase-f44

Log:
Fix <tab>-completion crash (Gary Benson, RH BZ 1398387).

---
diff --git a/gdb-upstream.patch b/gdb-upstream.patch
index 4a46134..373b7a8 100644
--- a/gdb-upstream.patch
+++ b/gdb-upstream.patch
@@ -720,3 +720,40 @@ Date:   Fri Sep 23 17:27:26 2016 +0100
  	      if (stat (procentry, &statbuf) == 0
  		  && S_ISDIR (statbuf.st_mode))
  		{
+
+
+
+http://sourceware.org/ml/gdb-patches/2017-02/msg00226.html
+Subject: [OB PATCH] Fix NULL pointer dereference
+
+This commit fixes a segmentation fault on tab completion when
+certain debuginfo is installed:
+
+  https://bugzilla.redhat.com/show_bug.cgi?id=1398387
+
+gdb/ChangeLog:
+
+	* symtab.c (add_symtab_completions): Prevent NULL pointer
+	dereference.
+---
+ gdb/ChangeLog | 5 +++++
+ gdb/symtab.c  | 3 +++
+ 2 files changed, 8 insertions(+)
+
+diff --git a/gdb/symtab.c b/gdb/symtab.c
+index 356f480..2c141e5 100644
+--- a/gdb/symtab.c
++++ b/gdb/symtab.c
+@@ -5163,6 +5163,9 @@ add_symtab_completions (struct compunit_symtab *cust,
+   struct block_iterator iter;
+   int i;
+ 
++  if (cust == NULL)
++    return;
++
+   for (i = GLOBAL_BLOCK; i <= STATIC_BLOCK; i++)
+     {
+       QUIT;
+-- 
+1.8.3.1
+

diff --git a/gdb.spec b/gdb.spec
index 7e3c6fb..78cb11b 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -26,7 +26,7 @@ Version: 7.12.1
 
 # The release always contains a leading reserved number, start it at 1.
 # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
-Release: 45%{?dist}
+Release: 46%{?dist}
 
 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and LGPLv3+ and BSD and Public Domain and GFDL
 Group: Development/Debuggers
@@ -1590,6 +1590,9 @@ then
 fi
 
 %changelog
+* Wed Feb 15 2017 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.12.1-46.fc26
+- Fix <tab>-completion crash (Gary Benson, RH BZ 1398387).
+
 * Tue Feb 14 2017 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.12.1-45.fc26
 - Release bump.
 

                 reply	other threads:[~2026-06-27 23:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178260468784.1.14467159625354502393.rpms-gdb-8d40388f0af7@fedoraproject.org \
    --to=jan.kratochvil@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox