bug-bash
[Top][All Lists]
Advanced

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

Re: bug in 4.2


From: Chet Ramey
Subject: Re: bug in 4.2
Date: Wed, 29 Jan 2014 15:29:53 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

On 1/29/14 6:53 AM, Csaba Toth wrote:
> Hi,
> 
> If you set PROMPT_DIRTRIM, in some cases strange output displayed in the
> prompt. I found an issue inside the trim_pathname() function, that uses
> memcpy() to copy head and tail together. That should not be used if the
> memory is overlapped and memmove() shall be used instead.

Thanks for the report.  This was reported and fixed in March, 2013, and
the fixed version is part of the bash development git branch.

http://lists.gnu.org/archive/html/bug-bash/2013-03/msg00047.html

(Your patch is exactly right, by the way.)

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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