Bug 143800

Summary: 3 * array subscript out of range
Product: [Fedora] Fedora Reporter: David Binderman <dcb314>
Component: ReginaAssignee: Karsten Hopp <karsten>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
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: 2005-01-31 13:31:53 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 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