Bug 135607

Summary: webalizer-2.01-731: array subscript out of range
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Anna Maresova <anicka>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2005-11-27 13:29:57 UTC
I just tried to compile package webalizer-2.01-731 with a non standard
version of the GNU C compiler

It said

dns_resolv.c:159: warning: array subscript out of range

The source code is

         log_rec->hostname[MAXHOST]=0;

but

struct  log_struct  {  char   hostname[MAXHOST];   /* hostname             */

so log_rec->hostname[MAXHOST] does not exist. Suggest code rework.

BTW, the email address of the author seems to be broken [ brad@usagl.net ]
Comment 1 Anna Maresova 2006-02-10 18:52:07 UTC
fixed for 10.1