bug-gnu-utils
[Top][All Lists]
Advanced

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

Bug in GNU ed 0.2


From: DervishD
Subject: Bug in GNU ed 0.2
Date: Thu, 24 Oct 2002 20:09:48 +0200
User-agent: Mutt/1.4i

    Hi all :))

    When GNU ed is started interactively and the first command is 'H'
or 'h', it prints garbage. IMHO this is caused because 'errmsg' is
used uninitialized after it is allocated.

    Just do a 'calloc' instead when allocating buffers (I haven't
read all the sources, but I think that this can apply to all other
allocated buffers), or set the first char of 'errmsg' to '\0', or use
memset, etc... There are plenty of solutions :))

    Thanks for making 'ed' free software :)

    Raúl




reply via email to

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