From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: secret strings Date: Fri, 01 Apr 2011 10:59:20 -0400 Message-ID: References: <4D926EA9.5080509@gmail.com> <4D92AD2B.40502@gmail.com> <87lizwd9lt.fsf_-_@lifelogs.com> <87ei5n8ffi.fsf@lifelogs.com> <87hbaivju2.fsf@uwakimon.sk.tsukuba.ac.jp> <87ei5moa61.fsf_-_@lifelogs.com> <87hbaia58a.fsf@uwakimon.sk.tsukuba.ac.jp> <87aagansj0.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1301669989 27500 80.91.229.12 (1 Apr 2011 14:59:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2011 14:59:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 01 16:59:43 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5fp3-0002CS-TR for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2011 16:59:38 +0200 Original-Received: from localhost ([127.0.0.1]:35182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5fp3-0007K5-43 for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2011 10:59:37 -0400 Original-Received: from [140.186.70.92] (port=34571 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5fos-0007Hv-It for emacs-devel@gnu.org; Fri, 01 Apr 2011 10:59:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5fon-0004iH-Pa for emacs-devel@gnu.org; Fri, 01 Apr 2011 10:59:26 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:42595 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5fon-0004i4-Mb for emacs-devel@gnu.org; Fri, 01 Apr 2011 10:59:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAHrnlU1FxKsL/2dsb2JhbAClV3iIebk4hWsEljQ X-IronPort-AV: E=Sophos;i="4.63,282,1299474000"; d="scan'208";a="102487173" Original-Received: from 69-196-171-11.dsl.teksavvy.com (HELO pastel.home) ([69.196.171.11]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 01 Apr 2011 10:59:20 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 23CD258F8C; Fri, 1 Apr 2011 10:59:20 -0400 (EDT) In-Reply-To: <87aagansj0.fsf@lifelogs.com> (Ted Zlatanov's message of "Fri, 01 Apr 2011 06:02:43 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:137999 Archived-At: > I don't think that's the same thing. We want to pass the > producer-generated data around and wipe it when the garbage collection > deallocates the memory. But maybe I misunderstand something. I don't think that's what you want: work done by finalizers should never be significant (e.g. it's a bad idea to use finalizers to close file-handles, or to wipe sensitive data). If you want to wipe that data, then do it explicitly with `clear-string', since the GC might never collect it. Stefan