Bug 143800 - 3 * array subscript out of range
Summary: 3 * array subscript out of range
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: Regina
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-12-28 11:37 UTC by David Binderman
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-01-31 13:31:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Binderman 2004-12-28 11:37:20 UTC
Description of problem:

I just tried to compile package Regina-2.3-1 from 
Redhat Fedora development tree.

The compiler said

1.

./debug.c(308): warning #175: subscript out of range

The source code is

      if (chptr>=chend || outptr >= string->value + BUFFERSIZE)
         break ;

string->value + BUFFERSIZE doesn't exist, suggest

      if (chptr>=chend || outptr > string->value + BUFFERSIZE - 1)
         break ;

is better code.

2.

./extstack.c(407): warning #175: subscript out of range

The source code is

      (*server_name)->value[9] = '\0';

I'm not sure what the fix is for this.

3.

./rexxsaa.c(934): warning #175: subscript out of range

The source code is

            rt->CurrentHandlers->Handlers[RXENV] = handler ;

but

../BUILD/Regina-2.3/rexxsaa.h:#define RXENV       12  /* System
Environment interface */
../BUILD/Regina-2.3/rexxsaa.h:#define RXNOOFEXITS 12

Suggest code re-work.



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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Karsten Hopp 2005-01-31 13:31:53 UTC
Regina has been removed


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