Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
This looks obviously wrong to me, but maybe it's unreachable?
- X-seq: zsh-workers 37200
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: This looks obviously wrong to me, but maybe it's unreachable?
- Date: Sun, 22 Nov 2015 14:50:46 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:to:subject:mime-version:content-type; bh=Vn765nIW3AABrDnqEA6qjo9HNqAdeQvs132ZQWO9HAo=; b=AFa00gUbb+47zWGK/OTb2ppW4GH8YzAYJSZxHEQJ32BohLCPxK8++dKjTkiDFvdDUi 57b737Lll68aUwZ93MnfFBv0T905OBSMzQds93BosYsbwhWGa3zSIk7cAt6+fWthtWFa etMEETu19qmFu8zewZJKoLNOtp8D5s47iEOgot+A5ocge0amY0shCsmimywcabcfNfwf nGlnf78zHw1QRXpTOVBlbzrnnM5oLm5peIaKh8P4eWBB/P2HqyflV5EcFP0XKAKid0uO pohd/p6VmfbgDdvOq3bqv/Xhs4gYKvisXoExOZF3OF08aapQU4lHilVxXyQJeJqREsiS 85Dw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
This is in sethparam():
if (!(v = fetchvalue(&vbuf, &s, 1, SCANPM_ASSIGNING))) {
createparam(t, PM_HASHED);
if (isset(WARNCREATEGLOBAL) && locallevel > 0)
check_warn_create(v->pm, "associative array");
That's plainly dereferencing v->pm in a block where v is NULL.
However I think it's impossible to reach that code because you can never
assign to an associative array without declaring it first, so it's not
possible to accidentally create one at global scope.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author