unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: emacs-devel@gnu.org
Subject: Re: emacs-26 c87d04e: Avoid aborts in 'md5'
Date: Wed, 28 Feb 2018 17:52:07 +0200	[thread overview]
Message-ID: <83lgfdyuvs.fsf@gnu.org> (raw)
In-Reply-To: <87h8q15xdo.fsf@gmx.de> (message from Michael Albinus on Wed, 28 Feb 2018 09:30:59 +0100)

> From: Michael Albinus <michael.albinus@gmx.de>
> Cc: Eli Zaretskii <eliz@gnu.org>
> Date: Wed, 28 Feb 2018 09:30:59 +0100
> 
> > +  if (!STRINGP (object))
> > +    signal_error ("Invalid object argument",
> > +		  NILP (object) ? build_string ("nil") : object);
> >    return SSDATA (object);
> >  }
> 
> Don't we call CHECK_STRING (object) in such cases, which raises the
> standardized error Qwrong_type_argument?

Using CHECK_STRING would produce a misleading error message, because
the APIs that call extract_data_from_object accept objects other than
strings.



      parent reply	other threads:[~2018-02-28 15:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180227164448.16622.42058@vcs0.savannah.gnu.org>
     [not found] ` <20180227164448.E4B45207B1@vcs0.savannah.gnu.org>
2018-02-28  8:30   ` emacs-26 c87d04e: Avoid aborts in 'md5' Michael Albinus
2018-02-28  8:49     ` Andreas Schwab
2018-02-28  9:09       ` Michael Albinus
2018-02-28  9:15         ` Andreas Schwab
2018-02-28 15:55           ` Eli Zaretskii
2018-02-28 16:32             ` Andreas Schwab
2018-02-28 17:24               ` Eli Zaretskii
2018-02-28 19:14                 ` Paul Eggert
2018-02-28 20:35                   ` Eli Zaretskii
2018-02-28 22:14                     ` Paul Eggert
2018-03-01  3:39                       ` Eli Zaretskii
2018-02-28 15:52     ` Eli Zaretskii [this message]

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=83lgfdyuvs.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=michael.albinus@gmx.de \
    /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).