[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 6c2e21e 1/2: Avoid segfault in processes of type
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-26 6c2e21e 1/2: Avoid segfault in processes of type 'pipe' |
Date: |
Fri, 13 Apr 2018 08:49:28 -0400 (EDT) |
branch: emacs-26
commit 6c2e21e1cabfb9640320a043063c9a4761e58dec
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Avoid segfault in processes of type 'pipe'
* src/process.c (Fmake_pipe_process): Set up the decoding and
encoding buffers. For the details, see
http://lists.gnu.org/archive/html/emacs-devel/2018-04/msg00295.html.
---
src/process.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/process.c b/src/process.c
index b201e9b..45ab1fd 100644
--- a/src/process.c
+++ b/src/process.c
@@ -2461,6 +2461,10 @@ usage: (make-pipe-process &rest ARGS) */)
/* This may signal an error. */
setup_process_coding_systems (proc);
+ pset_decoding_buf (p, empty_unibyte_string);
+ eassert (p->decoding_carryover == 0);
+ pset_encoding_buf (p, empty_unibyte_string);
+
specpdl_ptr = specpdl + specpdl_count;
return proc;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 6c2e21e 1/2: Avoid segfault in processes of type 'pipe',
Eli Zaretskii <=