Bug 80822 - broken source code
broken source code
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: rsh (Show other bugs)
8.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-12-31 13:06 EST by d.binderman
Modified: 2015-03-04 20:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-01-17 11:37:01 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description d.binderman 2002-12-31 13:06:21 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk  (Win98; I)

Description of problem:

Hello there,

I have just tried to compile package rsh-0.17-10 from Redhat 8.0

Here are some of the messages the compiler produces

cc: Info: rlogind.c, line 353: In this statement, an array is being accessed outside the bounds specified for the array type. (subscrbounds)
cc: Info: rlogind.c, line 354: In this statement, an array is being accessed outside the bounds specified for the array type. (subscrbounds)
cc: Info: rlogind.c, line 355: In this statement, an array is being accessed outside the bounds specified for the array type. (subscrbounds)
cc: Info: rlogind.c, line 356: In this statement, an array is being accessed outside the bounds specified for the array type. (subscrbounds)
cc: Info: rlogind.c, line 358: In this statement, an array is being accessed outside the bounds specified for the array type. (subscrbounds)

Here is an untested patch to shut up the compiler.

./rlogind/rlogind.c.old ./rlogind/rlogind.c
*** ./rlogind/rlogind.c.old	Wed Dec 25 10:05:44 2002
--- ./rlogind/rlogind.c	Wed Dec 25 10:12:57 2002
***************
*** 336,342 ****
  		  const char *localuser, int authenticated,
  		  const char *rusername)
  {
!     char *termenv[2];
  
      setup_term(0, termtype);
  
--- 336,342 ----
  		  const char *localuser, int authenticated,
  		  const char *rusername)
  {
!     char *termenv[ 4];
  
      setup_term(0, termtype);
  


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


How reproducible:
Always

Steps to Reproduce:
1. compile with any C compiler that checks array indexes, for example Compaq.
2.
3.
    

Additional info:
Comment 1 Phil Knirsch 2003-01-17 11:37:01 EST
Fixed in rsh-0.17-13 (available via rawhide shortly).

Read ya, Phil

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