Bug 146141

Summary: pwdutils-3.0.7-6: array subscript out of range
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Thorsten Kukuk <kukuk>
Status: RESOLVED WORKSFORME QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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 ?