From: Eli Zaretskii <eliz@gnu.org>
To: "Lukas Fürmetz" <fuermetz@mailbox.org>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] Add nil check for decoding buffer
Date: Thu, 12 Apr 2018 19:24:56 +0300 [thread overview]
Message-ID: <83o9io1jfr.fsf@gnu.org> (raw)
In-Reply-To: <424309166.12789.1523547286139@office.mailbox.org> (message from Lukas Fürmetz on Thu, 12 Apr 2018 17:34:45 +0200 (CEST))
> Date: Thu, 12 Apr 2018 17:34:45 +0200 (CEST)
> From: Lukas Fürmetz <fuermetz@mailbox.org>
> Cc: emacs-devel@gnu.org
>
> Yes I can do that, just send me the patch and I'll give you feedback.
Below.
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;
next prev parent reply other threads:[~2018-04-12 16:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-10 21:44 [PATCH] Add nil check for decoding buffer Lukas Fürmetz
2018-04-11 17:00 ` Eli Zaretskii
2018-04-12 15:24 ` Lukas Fürmetz
2018-04-12 15:29 ` Eli Zaretskii
2018-04-12 15:34 ` Lukas Fürmetz
2018-04-12 16:24 ` Eli Zaretskii [this message]
2018-04-13 8:47 ` Lukas Fürmetz
2018-04-13 12:49 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83o9io1jfr.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=fuermetz@mailbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.