Bug 151310

Summary: libmal-0.31-158: array suscript out of range
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Will Stephenson <wstephenson>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2006-02-15 21:14:39 UTC
I just tried to compile package libmal-0.31-158 with a non standard version
of the GNU C compiler.

It said

./malsync/mal/common/AGBase64.c:194: warning: array subscript out of range

The source code is

	*ob++ = ((inbuf [2] & 0x03) << 6) | (inbuf [3] & 0x3F);

but, earlier in the same file is the source code

	char inbuf [3];

so inbuf [3] does not exist.  Suggest make inbuf one element bigger.
Comment 1 Dirk Mueller 2006-03-01 16:22:13 UTC
I agree, fixed.