Bug 151310 - libmal-0.31-158: array suscript out of range
Summary: libmal-0.31-158: array suscript out of range
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All SuSE Linux 10.1
: P5 - None : Minor
Target Milestone: ---
Assignee: Will Stephenson
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-15 21:14 UTC by David Binderman
Modified: 2006-03-01 16:22 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-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.