mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 15:56:35 -04:00
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.
This commit is contained in:
parent
208e7520b6
commit
6c2e21e1ca
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue