]> git.lizzy.rs Git - plan9front.git/commit
awk: fix nextfile crash (thanks leetspete)
authorcinap_lenrek <cinap_lenrek@felloff.net>
Tue, 16 Apr 2019 14:13:30 +0000 (16:13 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Tue, 16 Apr 2019 14:13:30 +0000 (16:13 +0200)
commit7c33bdd2d31ade66cbf0ad4531fdbeda1d6cbba5
tree07dac68eb191f26c15f2b04d095e24861d021f14
parent75ee3b3081edab418e443d499ec28ceda9121e93
awk: fix nextfile crash (thanks leetspete)

to reproduce the bug:

term% awk 'BEGIN{nextfile; nextfile;}'
sys: trap: fault read addr=0x10 pc=0x00019a3a
awk 6584: suicide: sys: trap: fault read addr=0x10 pc=0x00019a3a
sys/src/cmd/awk/lib.c