lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev LYLowerCase EBCDIC Crash [PATCH]


From: pg
Subject: Re: lynx-dev LYLowerCase EBCDIC Crash [PATCH]
Date: Mon, 22 Oct 2001 07:29:31 -0600 (MDT)

In a recent note, Thomas E. Dickey said:

> Date: Mon, 22 Oct 2001 09:08:54 -0400 (EDT)
> 
> On Mon, 22 Oct 2001 address@hidden wrote:
> 
> > The problem:  If the last character of a string has the 0x80 bit set,
> > the "i++" in LYLowerCase skips over the terminating NUL and LYLowerCase
> > coasts througm memory converting characters to lower case until it
> > encounters a NUL not preceded by 0x80.  This usually results in an
> > Invalid Heap at the next call to free() and Lynx crashes, leaving the
> > terminal in an insane state.
> 
> how do you determine the end of an EBCDIC string?
> 
'\0' as required by ANSI C.

> >   fix.  Should I perhaps disable SUPPORT_MULTIBYTE_EDIT early in some
> >   header file if EBCDIC is set?
> 
> probably a good idea
> 
OTOH, explicitly disabling it at the point of the problem might alert
a future maintainer who might otherwise naively re-break it.

-- gil
-- 
StorageTek
INFORMATION made POWERFUL

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

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