Bug 141852

Summary: scummvm-0.8.0-3: array subscript out of range
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P2 - High    
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-06 19:46:50 UTC
I just tried to compile package scummvm-0.8.0-3 with a non standard
version of the GNU C compiler

It said

compress_scumm_bun.cpp:144: warning: array subscript out of range

The source code is

        _destImcTable[89] = 0;

but

static byte _destImcTable[89];

Clearly broken code. Suggest code rework.
Comment 1 Stefan Dirsch 2006-01-09 11:56:06 UTC
> Clearly broken code. 
Indeed!
Comment 3 Stefan Dirsch 2006-01-09 23:12:15 UTC
Problem has already been fixed in CVS sources according to the scummvm bugtracking system. So it will get fixed with the next scummvm release.
Comment 4 Stefan Dirsch 2006-01-10 10:58:14 UTC
updated scumvm tools sources to current CVS --> fixed for 10.1 Beta1.