[Top][All Lists]

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

Re: decode_prompt_string () bug in octal expansion

From: Chet Ramey
Subject: Re: decode_prompt_string () bug in octal expansion
Date: Wed, 27 Dec 2000 12:57:21 -0500

> Machine Type: i586-pc-linux-gnu
> Bash Version: 2.04
> Patch Level: 0
> Release Status: release
> Description:
>       in decode_prompt_string () (file parse.y line 3005) when expanding
>       octal sequences, you assume 
>       > string += 3;

Since the documented sequence is three characters long.

>       if the octal sequence isn't 3 bytes long and the octal is at the end 
>       of *string, the end of *string ('\0') is skipped, so the prompt will
>       be broken (heap inspection)

Well, it seems like kind of an easy mistake to make.  I'll fix it.

``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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