bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: heap-use-after-free in executing_line_number


From: Chet Ramey
Subject: Re: heap-use-after-free in executing_line_number
Date: Fri, 2 Feb 2024 10:41:21 -0500
User-agent: Mozilla Thunderbird

On 1/25/24 3:23 AM, Grisha Levit wrote:
If currently_executing_command was a subshell, it can end up freed by
the time executing_line_number checks it.

Thanks for the report. The fix is to have function_substitute save and
restore this, since parse_and_execute can overwrite it.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]