From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64139 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.gnus.general Subject: password.el Date: Tue, 26 Dec 2006 14:41:54 +0900 Message-ID: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1167111823 12273 80.91.229.10 (26 Dec 2006 05:43:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Dec 2006 05:43:43 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M12662@lists.math.uh.edu Tue Dec 26 06:43:41 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gz56C-0005Co-Dt for ding-account@gmane.org; Tue, 26 Dec 2006 06:43:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Gz54i-0003lZ-6E; Mon, 25 Dec 2006 23:42:08 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Gz54g-0003lD-IX for ding@lists.math.uh.edu; Mon, 25 Dec 2006 23:42:06 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1Gz54c-0006jT-K3 for ding@lists.math.uh.edu; Mon, 25 Dec 2006 23:42:06 -0600 Original-Received: from g96069.scn-net.ne.jp ([210.231.96.69] helo=well-done.deisui.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Gz54b-0000cn-00 for ; Tue, 26 Dec 2006 06:42:01 +0100 Original-Received: from [150.82.173.223] (helo=well-done.deisui.org) by well-done.deisui.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Gz54W-0005Tq-Fm; Tue, 26 Dec 2006 14:41:56 +0900 Original-To: Simon Josefsson X-Attribution: DU Mail-Copies-To: poster X-Spam-Score: 1.4 (+) X-Spam-Report: SpamAssassin (3.1.7 2006-10-05) analysis follows Bayesian score: 0.0032 Ham tokens: 0.001-1827--4290h-5s--0d--0000, 0.001-35--82h-0s--0d--H*r:TLS-1.0, 0.002-4078--9666h-49s--0d--HCc:D*org, 0.002-10--22h-0s--0d--gnus, 0.004-1793--4302h-44s--0d--H*c:US-ASCII Spam tokens: 0.906-234--308h-6977s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.906-234--308h-6977s--0d--H*RU:quimby.gnus.org, 0.901-176--265h-5672s--0d--HX-Spam-Relays-Internal:quimby.gnus.org, 0.901-176--265h-5672s--0d--H*RT:80.91.231.51, 0.901-176--265h-5672s--0d--HX-Spam-Relays-Internal:80.91.231.51 Autolearn status: no 0.1 FORGED_RCVD_HELO Received: contains a forged HELO -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0032] 3.9 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL [210.231.96.69 listed in sbl-xbl.spamhaus.org] List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64139 Archived-At: Hello, On Emacs 22, the following code signals an error (require 'password) (password-cache-add "0" (string (make-char 'latin-iso8859-1 100))) (password-cache-remove "0") Debugger entered--Lisp error: (error "Attempt to change byte length of a string") fillarray("\x8e4" 95) The following patch will fix this. Index: password.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/password.el,v retrieving revision 7.12 diff -u -r7.12 password.el --- password.el 30 Apr 2006 09:44:06 -0000 7.12 +++ password.el 26 Dec 2006 05:41:18 -0000 @@ -113,7 +113,9 @@ user again." (let ((password (symbol-value (intern-soft key password-data)))) (when password - (fillarray password ?_) + (if (fboundp 'clear-string) + (clear-string password) + (fillarray password ?_)) (unintern key password-data)))) (defun password-cache-add (key password) -- Daiki Ueno