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

Bug#22024: marked as done (nn crashes when there are more than 32K active newsgroups)



Your message dated Mon, 2 Nov 1998 09:49:20 +0100 (CET)
with message-id <m0zaFfs-000anHC@finlandia.Infodrom.North.DE>
and subject line This bug has been fixed
has caused the attached bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I'm
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Ian Jackson
(administrator, Debian bugs database)

Received: (at submit) by bugs.debian.org; 2 May 1998 16:15:29 +0000
Received: (qmail 185 invoked from network); 2 May 1998 16:15:28 -0000
Received: from surf4216.se.mediaone.net (HELO franco.local) (qmailr@24.129.49.116)
  by debian.novare.net with SMTP; 2 May 1998 16:15:28 -0000
Received: (qmail 1311 invoked by uid 1000); 2 May 1998 12:16:06 -0000
Message-ID: <19980502071605.A1249@franco.local>
Date: Sat, 2 May 1998 07:16:05 -0500
From: Franco Venturi <fventuri@mediaone.net>
To: submit@bugs.debian.org
Cc: Franco Venturi <fventuri@mediaone.net>
Subject: nn crashes when there are more than 32K active newsgroups
Reply-To: Franco Venturi <fventuri@mediaone.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.91.1

Package: nn
Version: 6.5.0.b3.linux.1.1-01

nn crashes when there are more than 32K active newsgroups.
If there are more than 32K active newgroups, the variable:
master.number_of_groups in db.c becomes negative (it is declared
as a int16, hence it ranges from -32K to 32K-1).
My proposed patch is to change in file global.h line 33 the
definition of typedef group_number from int16 to int32 as follows:
----------------------------------------------------------------------------
*** global.h.old	Sat May  2 07:03:42 1998
--- global.h	Sat May  2 07:05:35 1998
***************
*** 30,36 ****
  #endif
  
  typedef int32	article_number;
! typedef int16	group_number;
  typedef uint32	time_stamp;
  
  typedef int	(* fct_type )();
--- 30,36 ----
  #endif
  
  typedef int32	article_number;
! typedef int32	group_number;
  typedef uint32	time_stamp;
  
  typedef int	(* fct_type )();
----------------------------------------------------------------------------
I did this change in my version of nn here and everything works fine
(so far).

I am using Debian 1.3.1.r6 with kernel version 2.0.33 and
libc version 5.4.33

Thanks for your help,
Franco Venturi


Reply to: