Bug 152208 - tkimg-1.3-35: four buglets
Summary: tkimg-1.3-35: four buglets
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 : Normal
Target Milestone: ---
Assignee: Reinhard Max
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-20 11:01 UTC by David Binderman
Modified: 2006-02-20 17:48 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-20 11:01:02 UTC
I just tried to compile package tkimg-1.3-35 with the Intel C compiler.

It said

1.

bmp.c(450): warning #175: subscript out of range
bmp.c(451): warning #175: subscript out of range

The source code is

                x += rleBuf[2];
                y += rleBuf[3];

but

        unsigned char rleBuf[2];

Suggest code rework.

2.

ps.c(174): warning #175: subscript out of range

The source code is

    unsigned char buf[41];

	/* ... */

	buf[41] = 0;

Suggest code rework.

3.

tiff.c(564): warning #592: variable "bl" is used before its value is set

The source code is

	unsigned char *pixelPtr = block.pixelPtr;

Suggest initialise local variable "bl" before first use.
Comment 1 Reinhard Max 2006-02-20 17:46:13 UTC
.
Comment 2 Reinhard Max 2006-02-20 17:48:43 UTC
Whoops, closed this one by accident, but will now fix it for 10.1 anyways, so no need to reopen.