From: David Schmidt <david__schmidt@users.sourceforge.net>
Date: Tue, 25 May 2004 01:40:35 +0000 (+0000)
Subject: Removing the "arbitrary" limit of 1000 elements in list.c - due to tracker
X-Git-Tag: v_3_1_archive_branchpoint~2
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/@default-cgi@/user-manual/static/gitweb.js?a=commitdiff_plain;h=65cee25206820781c80bd046c836f094c11066c5;p=privoxy.git

Removing the "arbitrary" limit of 1000 elements in list.c - due to tracker
#911950.
---

diff --git a/src/list.c b/src/list.c
index c8556d4c..afec975c 100644
--- a/src/list.c
+++ b/src/list.c
@@ -1,7 +1,7 @@
-const char list_rcs[] = "$Id: list.c,v 1.15 2002/03/26 22:29:55 swa Exp $";
+const char list_rcs[] = "$Id: list.c,v 2.0 2002/06/04 14:34:21 jongfoster Exp $";
 /*********************************************************************
  *
- * File        :  $Source: /cvsroot/ijbswa/current/list.c,v $
+ * File        :  $Source: /cvsroot/ijbswa/current/src/list.c,v $
  *
  * Purpose     :  Declares functions to handle lists.
  *                Functions declared include:
@@ -34,6 +34,9 @@ const char list_rcs[] = "$Id: list.c,v 1.15 2002/03/26 22:29:55 swa Exp $";
  *
  * Revisions   :
  *    $Log: list.c,v $
+ *    Revision 2.0  2002/06/04 14:34:21  jongfoster
+ *    Moving source files to src/
+ *
  *    Revision 1.15  2002/03/26 22:29:55  swa
  *    we have a new homepage!
  *
@@ -259,11 +262,16 @@ static int list_is_valid (const struct list *the_list)
 
       /*
        * Arbitrarily limit length to prevent infinite loops.
+       * Note that the 1000 limit was hit by a real user in tracker 911950;
+       * removing it for now.  Symptoms of a real circular reference will
+       * include 100% CPU usage, I'd imagine.  It'll be obvious, anyway.
        */
+      /*
       if (++length > 1000)
       {
          return 0;
       }
+      */
 
       /*
        * Check this isn't marked as the last entry, unless of course it's