Bug 135607 - webalizer-2.01-731: array subscript out of range
Summary: webalizer-2.01-731: array subscript out of range
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: All SuSE Linux 10.0
: P5 - None : Minor
Target Milestone: ---
Assignee: Anna Maresova
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-27 13:29 UTC by David Binderman
Modified: 2006-02-10 18:52 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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