[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 117795a059: Fix possible null pointer access
From: |
Gerd Moellmann |
Subject: |
master 117795a059: Fix possible null pointer access |
Date: |
Sun, 18 Sep 2022 01:46:28 -0400 (EDT) |
branch: master
commit 117795a0594d1b4fc1c267311d789b0255ac6291
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>
Fix possible null pointer access
* src/term.c (Ftty__output_buffer_size): Handle case of
decode_tty_terminal returning NULL.
---
src/term.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/term.c b/src/term.c
index 231324d002..f8104e0304 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2433,7 +2433,9 @@ A value of zero means TTY uses the system's default
value. */)
(Lisp_Object tty)
{
struct terminal *terminal = decode_tty_terminal (tty);
- return make_fixnum (terminal->display_info.tty->output_buffer_size);
+ if (terminal)
+ return make_fixnum (terminal->display_info.tty->output_buffer_size);
+ error ("Not a tty terminal");
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 117795a059: Fix possible null pointer access,
Gerd Moellmann <=