On Thu, Feb 07, 2002 at 05:31:30PM -0200, Fr?d?ric L. W. Meunier wrote:
> I don't know if it's a bug or something with my system, but
> for me Lynx starts using all CPU doing the following:
>
> 1- http://www.ibazar.com.br/
> 2- Click "Cadastro" and accept all cookies
> 3- Click "[accepte.gif]"
>
> The last message is "Data transfer complete."
>
> Attached is a trace (I sent a SIGTERM).
I added some limit checks to avoid the infinite loop:
--- src/GridText.c.orig Tue Jan 1 20:55:54 2002
+++ src/GridText.c Thu Feb 7 18:40:01 2002
@@ -5731,13 +5731,16 @@
&& count_line >= stop_before) {
LYSetHiText(anchor_ptr, NULL, 0);
break;
+ } else if (line_ptr2 == text->last_line) {
+ break;
}
/*
* Double check that we have a line pointer, and if so, copy into
* highlight text.
*/
- if (line_ptr2) {
+ if (line_ptr2
+ && line_ptr2->size) {
char *hi_string = NULL;
int hi_offset = line_ptr2->offset;
--
Thomas E. Dickey <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]