Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Crash with read-only CDPATH



On Tue, Jul 2, 2024 at 3:27 AM Jun T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
>
> If CDPATH (a special parameter) is made readonly, save_params()
> (called at exec.c:4071) does not allocate any memory for tpm,
> but the original pm (obtained by paramtab->getnode() at line 4410)
> is added to the restorelist (line 4442).
>
> I _guess_, in save_param(), we need to add tpm to restorelist
> only if a copy of pm (i.e., tpm) is allocated.
>
> Is this reasonable?

It looks reasonable to me, yes.  Thanks for investigating.




Messages sorted by: Reverse Date, Date, Thread, Author