bug-bash
[Top][All Lists]
Advanced

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

Re: Out of bounds read in parse.y.


From: Chet Ramey
Subject: Re: Out of bounds read in parse.y.
Date: Wed, 28 Aug 2024 09:48:20 -0400
User-agent: Mozilla Thunderbird

On 8/27/24 3:58 PM, Collin Funk wrote:

I suspect there is a decrement that isn't matched by a call to
set_word_top(). But a reproducer would help, otherwise we're all just
guessing.

Sure, the bad read was happening while reading my .profile and .bashrc
file. I've narrowed it down to a bash completion file installed by my
system packages. I've attached it to this message.

Thanks. Here's the simple reproducer:

x()
{
    case y in
        z)
            if (! false); then
              foo=bar
            fi
            ;;
    esac
}


It was what I suspected.

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]