[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 10:28:26 -0400 (EDT) |
On Mon, 22 Oct 2001 address@hidden wrote:
> The offending code, distilled, is:
>
> for (i = 0; buffer[i]; i++)
> {
> if (buffer[i] & 0x80) {
> { ... }
> i++;
> } else {
> buffer[i] = UCH(TOLOWER(buffer[i]));
> }
> }
>
> The i++ may skip the NUL if the preceding character has 0x80 set.
would a 0x00 be legal following the 0x80? (If not, we could add a check
for that special case).
--
T.E.Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden
- lynx-dev LYLowerCase EBCDIC Crash [PATCH], pg, 2001/10/22
- Re: lynx-dev LYLowerCase EBCDIC Crash [PATCH], Thomas E. Dickey, 2001/10/22
- Re: lynx-dev LYLowerCase EBCDIC Crash [PATCH], pg, 2001/10/22
- Re: lynx-dev LYLowerCase EBCDIC Crash [PATCH], Thomas E. Dickey, 2001/10/22
- Re: lynx-dev LYLowerCase EBCDIC Crash [PATCH], pg, 2001/10/22
- Re: lynx-dev LYLowerCase EBCDIC Crash [PATCH],
Thomas E. Dickey <=
- Re: lynx-dev LYLowerCase EBCDIC Crash [PATCH], pg, 2001/10/22
- Re: lynx-dev LYLowerCase EBCDIC Crash [PATCH], Thomas E. Dickey, 2001/10/22
- Re: lynx-dev LYLowerCase EBCDIC Crash [PATCH], pg, 2001/10/22
- Re: lynx-dev LYLowerCase EBCDIC Crash [PATCH], Thomas E. Dickey, 2001/10/22
Re: lynx-dev LYLowerCase EBCDIC Crash [PATCH], pg, 2001/10/22