From: "Andreas Büsching" <crunchy@tzi.de>
Cc: emacs-devel@gnu.org
Subject: Re: extensions for emacsclient (CVS version)
Date: Wed, 10 Sep 2003 11:00:36 +0200 [thread overview]
Message-ID: <xtzk78huiff.fsf@dataman.informatik.uni-bremen.de> (raw)
In-Reply-To: <buollsxt4lv.fsf@mcspd15.ucom.lsi.nec.co.jp> (Miles Bader's message of "10 Sep 2003 17:44:28 +0900")
Hi,
Miles Bader <miles@lsi.nec.co.jp> wrote:
> Andreas Büsching <crunchy@tzi.de> writes:
>> - sprintf (server.sun_path, "/tmp/emacs%d-%s/server", (int) geteuid (), system_name);
>> + sprintf (server.sun_path, "%s", socket_name);
>> + sprintf (server.sun_path, "/tmp/emacs%d-%s/server", (int) geteuid (), system_name);
>
> 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?
crunchy
--
Hard work never killed anyone, but why give it a chance?
next prev parent reply other threads:[~2003-09-10 9:00 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 [this message]
2003-09-10 9:30 ` Miles Bader
2003-09-10 10:56 ` Andreas Büsching
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=xtzk78huiff.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.