Bug 146141 - pwdutils-3.0.7-6: array subscript out of range
Summary: pwdutils-3.0.7-6: array subscript out of range
Status: RESOLVED WORKSFORME
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All SUSE Other
: P5 - None : Minor
Target Milestone: ---
Assignee: Thorsten Kukuk
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-27 12:27 UTC by David Binderman
Modified: 2006-01-30 13:54 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 2006-01-27 12:27:41 UTC
I just tried to compile package pwdutils-3.0.7-6 with a non standard
version of the GNU C compiler.

It said

libldap.c:1784: warning: array subscript out of range

The source code is

      mods[8] = NULL;

but

  LDAPMod *mods[8], mod[8];

I agree with the compiler.  Suggest make local array one bigger.
Comment 1 Thorsten Kukuk 2006-01-30 09:51:05 UTC
No problem in stable.
Comment 2 David Binderman 2006-01-30 13:54:49 UTC
(In reply to comment #1)
> No problem in stable.

Really ? I'd like a little more detail on this please.

Which version of pwdutils is in stable ?

The standard GNU C compiler won't find this problem.

Did you visually check the source code ?