unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: whitfield.diffie@sun.com, storm@cua.dk,
	michael.cadilhac@lrde.org,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	emacs-devel@gnu.org
Subject: Re: Percent sign in message
Date: Tue, 12 Sep 2006 17:37:33 +0200	[thread overview]
Message-ID: <85irjt9juq.fsf@lola.goethe.zz> (raw)
In-Reply-To: <E1GNAAq-000328-Tl@fencepost.gnu.org> (Richard Stallman's message of "Tue\, 12 Sep 2006 11\:27\:44 -0400")

Richard Stallman <rms@gnu.org> writes:

>     > I think that would give too many false warnings, because it is not
>     > unusual to obtain the format string from some non-constant source.
>
>     Could be.  But the warning can be turned off by using (message
>     "%s" <exp>).
>
> Hmm.  If the warning is given only in the case of one arg, maybe it won't
> get too many spurious hits.  I was thinking of getting nontrivial format
> strings from nonconstant sources; but those cases would usually have
> further arguments.
>
> But let's save this for later.

I'd want to mention that format string vulnerabilities are a common
attack vector for viruses.  They will not likely be exploitable in
Elisp, but it shows that they are not rare among programmers (indeed,
one such case prompted the release of Emacs 21.4), and could cause
weird effects.

I think such a warning would not be amiss, and should probably be
extended to `error' as well.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  reply	other threads:[~2006-09-12 15:37 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-11  6:15 Percent sign in message Whitfield Diffie
2006-09-11  6:38 ` Michaël Cadilhac
2006-09-11  6:57   ` Whitfield Diffie
2006-09-11  7:18     ` David Kastrup
2006-09-11  8:26       ` Kim F. Storm
2006-09-11 14:07         ` Stefan Monnier
2006-09-11 19:57           ` Richard Stallman
2006-09-11 21:00             ` Stefan Monnier
2006-09-11 21:03               ` David Kastrup
2006-09-11 22:05                 ` Stefan Monnier
2006-09-11 22:13                   ` David Kastrup
2006-09-12  3:20                     ` Stefan Monnier
2006-09-12 15:27               ` Richard Stallman
2006-09-12 15:37                 ` David Kastrup [this message]
2006-09-19 19:39                   ` Stuart D. Herring
2006-09-19 21:49                     ` David Kastrup

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85irjt9juq.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=michael.cadilhac@lrde.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=storm@cua.dk \
    --cc=whitfield.diffie@sun.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).