emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 3139551: Don’t attempt to modify constant strings


From: Paul Eggert
Subject: Re: master 3139551: Don’t attempt to modify constant strings
Date: Sun, 17 May 2020 16:16:56 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 5/17/20 2:54 PM, Dmitry Gutov wrote:
> On 18.05.2020 00:36, Paul Eggert wrote:
>>> A cache normally doesn't mutate the values, it only holds on to them.
>> This cache mutates its values, unfortunately.
> 
> Perhaps it should call (copy-sequence val) itself, then? That would be a good
> development practice.

That would run afoul of the whole idea of clearing the string in the first
place, which was to avoid having one's password lying around in memory for a bad
actor to grab it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]