Bug 106305 - sane-backends bad source code
Summary: sane-backends bad source code
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: sane-backends   
(Show other bugs)
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: David Lawrence
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-10-05 09:19 UTC by d.binderman
Modified: 2007-04-18 16:58 UTC (History)
0 users

Fixed In Version: 1.0.12-5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-11-11 02:15:55 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description d.binderman 2003-10-05 09:19:48 UTC
Description of problem:

Hello there,

I just tried to compile package sane-backends-1.0.9-5, from Redhat 9.0,
with compiler flag -Wall.

The compiler said

canon-sane.c:1781: warning: operation on `p' may be undefined

The source code is

         *p++ = *(p + 1);

You probably meant to say

         p[ 0] = p[ 1];
         ++p;
         




Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
    
Actual results:


Expected results:


Additional info:

Comment 1 Tim Waugh 2003-10-08 08:44:56 UTC
Fixed in CVS.  Thanks.


Note You need to log in before you can comment on or make changes to this bug.