From: "Andreas Büsching" <crunchy@tzi.de>
Cc: emacs-devel@gnu.org
Subject: Re: extensions for emacsclient (CVS version)
Date: Wed, 10 Sep 2003 12:56:18 +0200 [thread overview]
Message-ID: <xtz4qzkvrn1.fsf@dataman.informatik.uni-bremen.de> (raw)
In-Reply-To: <buofzj5t2hx.fsf@mcspd15.ucom.lsi.nec.co.jp> (Miles Bader's message of "10 Sep 2003 18:30:02 +0900")
Hi,
Miles Bader <miles@lsi.nec.co.jp> wrote:
> Andreas Büsching <crunchy@tzi.de> writes:
>> > Hmmm, no bounds checking when writing into server.sun_path (the old code
>> > didn't either, but the constructed path is probably less likely to
>> > overflow).
>>
>> If this is the only problem that is simple to fix! So we will replace
>> 'sprintf(' with 'snprintf( sizeof server.sun_path, '. Is that what you
>> mean?
>
> Well, it would probably be better to print an error message in the case
> of a user-specified socket name. The size of sun_path is fairly small,
> actually, so an error is not all that unlikely.
>
> Also I'm not sure whether you're allowed to use snprintf, since it's not
> entirely portable, which emacs tries to be (I don't know if emacs
> contains its own version of snprintf for this purpose or not).
Okay, I understand, we _would_ need to find good and emacs like method
to handle this potential problem, but what I would like to know first is,
if this patch has any chance to get into CVS.
crunchy
--
BREAKFAST.COM halted... cereal port not responding!
next prev parent reply other threads:[~2003-09-10 10:56 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-10 8:26 extensions for emacsclient (CVS version) Andreas Büsching
2003-09-10 8:44 ` Miles Bader
2003-09-10 9:00 ` Andreas Büsching
2003-09-10 9:30 ` Miles Bader
2003-09-10 10:56 ` Andreas Büsching [this message]
2003-09-10 11:36 ` Miles Bader
2003-09-10 11:40 ` Andreas Büsching
2003-09-10 12:38 ` Stefan Monnier
2003-09-10 13:45 ` Andreas Büsching
2003-09-10 14:37 ` Miles Bader
2003-09-10 15:00 ` Andreas Büsching
2003-09-10 15:09 ` Miles Bader
2003-09-11 6:57 ` Andreas Büsching
2003-09-11 23:47 ` Richard Stallman
2003-09-12 5:22 ` Andreas Buesching
2003-09-12 21:06 ` Richard Stallman
2003-09-12 7:35 ` Andreas Büsching
2003-09-10 14:41 ` Stefan Monnier
2003-09-10 15:02 ` Andreas Büsching
2003-09-10 15:08 ` Stefan Monnier
2003-09-10 16:13 ` David Kastrup
2003-09-10 16:22 ` Andreas Büsching
2003-09-10 16:50 ` David Kastrup
2003-09-10 19:40 ` Alex Schroeder
2003-09-11 5:20 ` Andreas Buesching
2003-09-11 19:30 ` Andreas Buesching
2003-09-11 21:22 ` Miles Bader
2003-09-12 21:06 ` Richard Stallman
2003-09-11 23:46 ` Richard Stallman
2003-09-12 15:38 ` Stefan Monnier
2003-09-12 22:49 ` Alex Schroeder
2003-09-13 13:56 ` Richard Stallman
2003-09-11 13:16 ` Richard Stallman
2003-09-11 14:15 ` Andreas Büsching
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=xtz4qzkvrn1.fsf@dataman.informatik.uni-bremen.de \
--to=crunchy@tzi.de \
--cc=emacs-devel@gnu.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.