From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#32187: 26.1; gnutls-hash-digest Date: Tue, 17 Jul 2018 17:42:38 +0200 Message-ID: <87zhypg975.fsf@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1531842070 26757 195.159.176.226 (17 Jul 2018 15:41:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 17 Jul 2018 15:41:10 +0000 (UTC) Cc: 32187@debbugs.gnu.org To: Devon Sean McCullough Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 17 17:41:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ffS65-0006qO-RK for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Jul 2018 17:41:05 +0200 Original-Received: from localhost ([::1]:60055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffS8C-00014R-N9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Jul 2018 11:43:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffS82-00012V-Az for bug-gnu-emacs@gnu.org; Tue, 17 Jul 2018 11:43:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ffS7y-0007Xj-Ch for bug-gnu-emacs@gnu.org; Tue, 17 Jul 2018 11:43:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40619) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ffS7y-0007XQ-87 for bug-gnu-emacs@gnu.org; Tue, 17 Jul 2018 11:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ffS7x-0007ty-S8 for bug-gnu-emacs@gnu.org; Tue, 17 Jul 2018 11:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Jul 2018 15:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32187 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32187-submit@debbugs.gnu.org id=B32187.153184216930357 (code B ref 32187); Tue, 17 Jul 2018 15:43:01 +0000 Original-Received: (at 32187) by debbugs.gnu.org; 17 Jul 2018 15:42:49 +0000 Original-Received: from localhost ([127.0.0.1]:45637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ffS7l-0007tY-DU for submit@debbugs.gnu.org; Tue, 17 Jul 2018 11:42:49 -0400 Original-Received: from mail-ed1-f41.google.com ([209.85.208.41]:42553) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ffS7j-0007tK-Ae for 32187@debbugs.gnu.org; Tue, 17 Jul 2018 11:42:47 -0400 Original-Received: by mail-ed1-f41.google.com with SMTP id r4-v6so1589444edp.9 for <32187@debbugs.gnu.org>; Tue, 17 Jul 2018 08:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=OtgL9t+9zCQzZNTFkIOXCziPTBwbQUDLksLZIOtDiXs=; b=gitfGbM86OK9DSa9RRX9YxrZLc5Uk03ww7gdkG8aIpp3+VXwWTRHdxfTi7ib0Ky/nd CDc58y2wy3Uq3BBFprrHTj/UHV/gpyYLuAJknL0ynGewfjXYWHh907aOG/l/RVy6jl9J EB+B0MHT0z6GKcdlN7WSmd2yGjfRhVKvRcc05NnRopmse3t6//yl7SLfzNnD2UG1AlET hr2KTG/+5eN4ZnHoURyN9eRychiwQzOCju3O8KoHkTSXuNIGev7RfYFfnzSy5PV85p7v mLHogKZTCwrWw8+acwPxtXhNtgutr1oesCmIs/z+5nCro7ZLhDEWuHDgZqlGS2tYFQuA ccjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=OtgL9t+9zCQzZNTFkIOXCziPTBwbQUDLksLZIOtDiXs=; b=qVrYSVn97opI2HtzrvDKQLITXfoXfcW3bXkVD4023h6yu81AK6Dtduk3fx8LB856o4 NdcrYVqpdIRDaHpn6hkqedNiwoAev2h4erMOw260MbfqyEfIw75QJvueX+PZm8gOk3Iv XntjD1/h7kBDJSXcUyKNYMgTMje8Rdrq7eftYvLDqojhlDJadladXTCkHXjfA9OwP+dy 0YaVwYm+JChCqSy2GkpF6h+7m5ECSVeowrkCdUkHWh+RYNW1pONQ0k1ifnNoKbzYshXY leBSkJJYoIJVFUOMJlf3u3Lf9VjlSxe69v8LDFrVjPEdncJTM8Fnyb2BfUimyIv2I9JC 3awQ== X-Gm-Message-State: AOUpUlFXmNJHYrepSFs75lWj1yHmhdJg4JuLWOAbChEVFGFYbehRIZLs mFnd9t2awyDzu/0ND4DCXT5ywP22 X-Google-Smtp-Source: AAOMgpc9bozDFJUPow8LFs8d1IDWrrkF0Jiy0puf04xdu5jllvJPfKRyKTUajgRNg2GwAiqTMU4E0A== X-Received: by 2002:a50:a166:: with SMTP id 93-v6mr2966227edj.184.1531842161098; Tue, 17 Jul 2018 08:42:41 -0700 (PDT) Original-Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id s23-v6sm610305edm.74.2018.07.17.08.42.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jul 2018 08:42:40 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Devon Sean McCullough's message of "Tue, 17 Jul 2018 08:55:38 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148612 Archived-At: Devon Sean McCullough 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