Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: BUG: nested gethparam() in element getter returns wrong outer values
- X-seq: zsh-workers 55264
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Stig-Ørjan Smelror <smelror@xxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: BUG: nested gethparam() in element getter returns wrong outer values
- Date: Sat, 14 Nov 2026 11:31:48 -0800
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Qc89gbOcUb8VdgWMhBOQjYdQQE+K6r4nqh4oN3PbIrg=; fh=1KQ/2RBfZDnhQo/7MW+PRLceauSF/YYH65QBInBQ1ZE=; b=hkCEcMu+GXG414gwiNzpr96vDHK0tg+p6BiK6K3spdbhJ45fq1Mgz06KjxLQYStVLT 7L097Jg6KxVufrAmi2gC3vB8+DcAK5/m6fqoz3gpGOMmtCyzB8Dd5natHv6xYEhX2PTB YaIxuBRWDNND+hq0DEL8fkFiC+EIfZE9XHmSMUKDw7O7sEMjv+AkEx3TXJAcz+avfiBg JfC/Sm2955JoeEDcv4okyvSyF7s8cauM/kbfnK1yCy69CXyyGmGIfBPNtzh2Mm9OYNKD ama0Q5/7gnZ5ZPLAuy2xB/IqypmztFdSR2Ljg6GHfbdsXOd/k9d8PjWiD29cy2s1jfpS 7EbA==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1794684720; cv=none; d=google.com; s=arc-20260327; b=Cq6qJF3F/q1Fs5tyV7mnT1KNliyvo3FAfBBZcb3e6cwwAhuP0pPXqya6o04o7VD2pq G8/ZDN2u90y0dZk/gZnB5XuvnEIb468PRjZ1tjxn6m0uvFoLkygAtr5u2vC0UrXk51f4 iH6h3aNN7sdSQv7Gwj1JBVbHrV8+Sr7dsXByvUImO16/zW/8NuBUj4i7N9CPXBk7L2DE rhtJmxThjplq1v69lWSyUkiPG82ot665XOHewFnc6RQZkpunNUA+mA2D7khyiRnDcIOk wvfSDT2xs/grpGO2ft6RukBTolirDDB29Qu0lhfhU0o2HhRzf+0xSsRTVWt0R7gpZ10U iBQw==
- Archived-at: <https://zsh.org/workers/55264>
- In-reply-to: <CAJX6onJ78hZCWRSd9XrR0GFhh+DnpN3jQPoCwC4YemcMonFikA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAJX6onJ78hZCWRSd9XrR0GFhh+DnpN3jQPoCwC4YemcMonFikA@mail.gmail.com>
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