diff options
| author | Eli Zaretskii | 2018-04-13 15:48:04 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-04-13 15:48:04 +0300 |
| commit | 6c2e21e1cabfb9640320a043063c9a4761e58dec (patch) | |
| tree | c9d0370ac4b7f81d8397bd55afc2f90b03a06477 /src/process.c | |
| parent | 208e7520b64e6c65a33a3c68acf6f9b22ff69ffc (diff) | |
| download | emacs-6c2e21e1cabfb9640320a043063c9a4761e58dec.tar.gz emacs-6c2e21e1cabfb9640320a043063c9a4761e58dec.zip | |
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.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c index b201e9b6acc..45ab1fd7245 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -2461,6 +2461,10 @@ usage: (make-pipe-process &rest ARGS) */) | |||
| 2461 | /* This may signal an error. */ | 2461 | /* This may signal an error. */ |
| 2462 | setup_process_coding_systems (proc); | 2462 | setup_process_coding_systems (proc); |
| 2463 | 2463 | ||
| 2464 | pset_decoding_buf (p, empty_unibyte_string); | ||
| 2465 | eassert (p->decoding_carryover == 0); | ||
| 2466 | pset_encoding_buf (p, empty_unibyte_string); | ||
| 2467 | |||
| 2464 | specpdl_ptr = specpdl + specpdl_count; | 2468 | specpdl_ptr = specpdl + specpdl_count; |
| 2465 | 2469 | ||
| 2466 | return proc; | 2470 | return proc; |