Bug 110791 - bad source code
Summary: bad source code
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: irda-utils
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-11-24 16:04 UTC by d.binderman
Modified: 2007-11-30 22:10 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2003-11-24 16:48:55 UTC


Attachments (Terms of Use)

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 ! 


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