lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev 2.8.5dev.7 uses all CPU


From: Thomas Dickey
Subject: Re: lynx-dev 2.8.5dev.7 uses all CPU
Date: Thu, 7 Feb 2002 18:42:47 -0500
User-agent: Mutt/1.2.5i

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