unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Devon Sean McCullough <Emacs-Hacker2018@jovi.net>
Cc: 32187@debbugs.gnu.org
Subject: bug#32187: 26.1; gnutls-hash-digest
Date: Tue, 17 Jul 2018 17:42:38 +0200	[thread overview]
Message-ID: <87zhypg975.fsf@gmail.com> (raw)
In-Reply-To: <A54E57F4-276D-4965-963E-DEACA88C194A@jovi.net> (Devon Sean McCullough's message of "Tue, 17 Jul 2018 08:55:38 -0400")

Devon Sean McCullough <Emacs-Hacker2018@jovi.net> writes:

> $ /Applications/Emacs-26.1-2.app/Contents/MacOS/Emacs-x86_64-10_10 -Q --batch \
> --eval '(print (md5 ""))' \
> --eval '(print (mapconcat (lambda (b) (format "%02x" b)) (gnutls-hash-digest (quote MD5) "") ""))' \
> --eval '(print (mapconcat (lambda (b) (format "%02x" b)) (gnutls-hash-digest (quote md5) "") ""))'
>
> "d41d8cd98f00b204e9800998ecf8427e"
>
> "d41d8cd98f00b204e9800998ecf8427e"
> Fatal error 11: Segmentation faultAbort trap: 6 (core dumped)

Hmm. How about this:

diff --git i/src/gnutls.c w/src/gnutls.c
index 117278df35..63e3be61b9 100644
--- i/src/gnutls.c
+++ w/src/gnutls.c
@@ -2608,7 +2608,7 @@ the number itself. */)
     digest_method = intern (SSDATA (digest_method));
 
   if (SYMBOLP (digest_method))
-    info = XCDR (Fassq (digest_method, Fgnutls_digests ()));
+    info = CDR_SAFE (Fassq (digest_method, Fgnutls_digests ()));
   else if (TYPE_RANGED_INTEGERP (gnutls_digest_algorithm_t, digest_method))
     gda = XINT (digest_method);
   else





  reply	other threads:[~2018-07-17 15:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-17 12:55 bug#32187: 26.1; gnutls-hash-digest Devon Sean McCullough
2018-07-17 15:42 ` Robert Pluim [this message]
2018-07-17 17:01 ` 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

  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=87zhypg975.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=32187@debbugs.gnu.org \
    --cc=Emacs-Hacker2018@jovi.net \
    /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).