On 3/7/23 3:50 AM, Grisha Levit wrote:
This happens with yank-last-arg when the last arg ends with a backslash:
INPUTRC=/dev/null ./bash --norc -in <<<$'\\\n\e_'
==38861==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x00010390cfb2 at pc 0x000100622c18 bp 0x00016fdf1410 sp
Thanks for the report. This is a contender for the oldest bug ever reported --
the problem code is essentially the same in version 1.02 from 1989, which
is the earliest version I still have.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/