about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-27 16:05:45 -0500
committerEric Wong <e@80x24.org>2021-09-27 21:08:35 +0000
commit010159a7b789a3a27c917a5378db92c8adf78a9e (patch)
tree002f8a98c656ed2395a446206e14b05506e8b5d6 /t
parent81a0962fa9798c4fb0ab234ed54f3e886996a8a0 (diff)
downloadpublic-inbox-010159a7b789a3a27c917a5378db92c8adf78a9e.tar.gz
While `$argv[-1]' is `undef' on an empty @argv, using `$argv[-1]'
as a subroutine argument would fail incorrectly with:

    Modification of non-creatable array value attempted, subscript -1 at ...

...even though we'd never attempt to modify @_ itself in the
subroutines being called.  Work around the bug (tested on
5.16.3) by passing `undef' explicitly when `$argv[-1]' is
already `undef'.

Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Link: https://public-inbox.org/meta/20210927124056.kj5okiefvs4ztk27@meerkat.local/
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions