[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[screen-devel] [bug #51402] SEGFAULT when querying 'info' on detached sc
From: |
anonymous |
Subject: |
[screen-devel] [bug #51402] SEGFAULT when querying 'info' on detached screen |
Date: |
Fri, 7 Jul 2017 02:04:24 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux i686 on x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Follow-up Comment #1, bug #51402 (project screen):
Hidden behind three layers of macro defines, the actual null pointer is
"display". Several other places in code check for that but here it was sadly
missing, therefore:
Fix:
diff --git a/process.c b/process.c
index 2b007bc..2da24b8 100644
--- a/process.c
+++ b/process.c
@@ -5772,7 +5772,7 @@ ShowInfo()
if (wp->w_encoding != UTF8)
# endif
# endif
- if (D_CC0 || (D_CS0 && *D_CS0))
+ if (display && (D_CC0 || (D_CS0 && *D_CS0)))
{
if (wp->w_gr == 2)
{
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51402>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [screen-devel] [bug #51402] SEGFAULT when querying 'info' on detached screen, anonymous, 2017/07/06
- [screen-devel] [bug #51402] SEGFAULT when querying 'info' on detached screen,
anonymous <=
- [screen-devel] [bug #51402] SEGFAULT when querying 'info' on detached screen, Amadeusz Sławiński, 2017/07/07
- [screen-devel] [bug #51402] SEGFAULT when querying 'info' on detached screen, anonymous, 2017/07/07
- [screen-devel] [bug #51402] SEGFAULT when querying 'info' on detached screen, anonymous, 2017/07/07
- [screen-devel] [bug #51402] SEGFAULT when querying 'info' on detached screen, anonymous, 2017/07/07
- [screen-devel] [bug #51402] SEGFAULT when querying 'info' on detached screen, Amadeusz Sławiński, 2017/07/07
- [screen-devel] [bug #51402] SEGFAULT when querying 'info' on detached screen, Amadeusz Sławiński, 2017/07/10
- [screen-devel] [bug #51402] SEGFAULT when querying 'info' on detached screen, Amadeusz Sławiński, 2017/07/10