bug-ed
[Top][All Lists]
Advanced

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

[Bug-ed] Infinite loop in ed-0.6 and older


From: Karsten Hopp
Subject: [Bug-ed] Infinite loop in ed-0.6 and older
Date: Mon, 02 Jul 2007 14:55:06 +0200
User-agent: Thunderbird 2.0.0.0 (X11/20070419)

Hello,

ed enters an infinite loop when there's only one line in the edited file and 
you're
using the ?re syntax.

Example:
echo a >test
ed test
?a

Cause seems to be a missing check for addr (addr==0) in re.c line 246
Reproducible with ed-0.5 and ed-0.6, I didn't check any other versions.

  Karsten

--
 Karsten Hopp        | Mail: address@hidden
 Red Hat Deutschland | Tel: +49-711-96437-0
 Hauptstaetterstr.58 | Fax: +49-711-613590
 D-70178 Stuttgart   | http://www.redhat.de




reply via email to

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