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

Re: BUG: nested gethparam() in element getter returns wrong outer values



On Fri, Nov 13, 2026 at 2:31 AM Stig-Ørjan Smelror <smelror@xxxxxxxxx> wrote:
>
> I found a reproducible wrong-result bug in associative-array expansion in
> unmodified Zsh 5.9.2 and current upstream Git. If a native scalar getter for
> one hash element calls gethparam() for a different hash, the outer gethparam()
> can return the inner hash's values instead of its own.

I'm not sure "build and load a deliberately broken module" is
something we're really going to prevent upstream?  Unless I'm
misunderstanding this report?

There are a large number of ways to create a module that breaks the internals.

It's possible that workers/55148 might have an effect on this
particular variation; there are a couple of significant patches from
Philippe that are still pending, mostly because I've been waiting to
hear whether we're doing another version release before the git
branches diverge significantly.




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