[ECOS] Error in io\serial\current\src\common\tty.c
Alexander Hering
Hering@esk.fhg.de
Fri Jan 28 05:39:00 GMT 2000
Hello,
we have found an error in the tty driver.
When i press the backspace key, when no more characters are in the
buffer, the last input is printed again.
In function tty_read size is declared as unsigned int, and must not be
tested against a value below zero.
====> cyg_uint32 size, clen;
if ((c == '\b') || (c == 0x7F)) {
size -= 2; // erase one character + 'backspace' char
====> if (size < 0) size = 0;
Greetings
Alex
--
Fraunhofer-Einrichtung
Systeme der Kommunikationstechnik
Alexander Hering HansastraÃÂe 32
Dipl.-Ing. D-80686 München
Telefon: +49(0)89/547088-37
E-Mail: Hering@esk.fhg.de Telefax: +49(0)89/547088-25
begin:vcard
n:Hering;Alexander
tel;fax:+49(0)89/547088-20
tel;work:+49(0)89/547088-37
x-mozilla-html:TRUE
org:Fraunhofer-Einrichtung Systeme der Kommunikationstechnik (ESK)
adr:;;HansastraÃÂe 32/IV;München;Bayern;D-80686;Deutschland (Germany)
version:2.1
email;internet:Hering@esk.fhg.de
title:FhG - ESK
x-mozilla-cpt:;-31232
fn:Hering, Alexander
end:vcard
More information about the Ecos-discuss
mailing list