Re: [PATCHv3]ash: Add ifsfree to varunset and varvalue function to fix a buffer over-read

2022-08-02 Thread Denys Vlasenko
Applied, thank you! On Mon, Jun 20, 2022 at 8:23 PM Alex Gorinson wrote: > > Due to a logic error in the ifsbreakup function in ash.c when a > heredoc and normal command is run one after the other by means of a > semi-colon, when the second command drops into ifsbreakup the command > will be

[PATCHv3]ash: Add ifsfree to varunset and varvalue function to fix a buffer over-read

2022-06-20 Thread Alex Gorinson
Due to a logic error in the ifsbreakup function in ash.c when a heredoc and normal command is run one after the other by means of a semi-colon, when the second command drops into ifsbreakup the command will be evaluated with the ifslastp/ifsfirst struct that was set when the heredoc was evaluated.