Bug 110791

Summary: bad source code
Product: [Fedora] Fedora Reporter: d.binderman
Component: irda-utilsAssignee: Karsten Hopp <karsten>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-11-24 16:48:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description d.binderman 2003-11-24 16:04:20 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)

Description of problem:

I just tried to compile package irda-utils-0_9_15-1_1 from Fedora.

The compiler said

1.

irattach.c(617): warning #175: subscript out of range

The source code is

char device[20];

/* more code */

device[20] = '\0';

Array limits in C are exclusive, not inclusive.


Version-Release number of selected component (if applicable):
irda-utils-0_9_15-1_1 

How reproducible:
Always

Steps to Reproduce:
1. by inspection
2.
3.
    

Additional info:

Comment 1 Karsten Hopp 2003-11-24 16:48:55 UTC
fixed in fedora/development. Thanks for the report !