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: Thomas E. Dickey
Subject: Re: lynx-dev LYLowerCase EBCDIC Crash [PATCH]
Date: Mon, 22 Oct 2001 09:36:27 -0400 (EDT)

On Mon, 22 Oct 2001 address@hidden wrote:

> 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.

then the last character of a string shouldn't have 0x80 rather than 0x00.

-- 
T.E.Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net


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

reply via email to

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