[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-1548670 ] "Index out of range" error on valid
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2006-08-29 20:26:21
Message-ID: E1GIAA9-0001xa-Vy () sc8-sf-web3 ! sourceforge ! net
[Download RAW message or body]

Bugs item #1548670, was opened at 2006-08-29 17:52
Message generated for change (Comment added) made by tanders
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1548670&group_id=12694

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jochen (jochen2)
Assigned to: Nobody/Anonymous (nobody)
Summary: "Index out of range" error on valid Unsigned32 index value

Initial Comment:
This bug is forwarded from
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=383380

I file this as bug rather as patch as i'm not convinced
the user supplied patch is correct. It changes the
index test to always be calculated unsigned even for
signed index (is this even allowed according to the
SMI?) -- Jochen

From: Kevin Humphries <kevin.humphries@alcatel.com>

While running snmptest, the following error message is
seen.  In this case it is doing a simple GET, but SETs
will also fail this way.  The variable is of type
Ospfv3AreaIdTC which is an Unsigned32 (0..'FFFFFFFF'h)
value.  Due to the casting of the upper and lower
bounds as a signed int for range checking, the values
of 0 - 0x7FFFFFFF all fail.  (See MIB definition
below).  Attached is a patch that will fixed this problem.

Variable: ospfv3AreaStatus.2
ospfv3AreaStatus.2: Unknown Object Identifier (Index
out of range: 2 (ospfv3AreaId))
Variable:

relevant parts of the MIB definition ( ref:
draft-ietf-ospf-ospfv3-mib-09.txt)

Ospfv3AreaIdTc ::= TEXTUAL-CONVENTION 
             DISPLAY-HINT "d" 
             STATUS      current 
             DESCRIPTION 
                "An OSPFv3 Area Identifier" 
             SYNTAX      Unsigned32 (0..'FFFFFFFF'h) 

[...]

    ospfv3AreaTable OBJECT-TYPE 
            SYNTAX          SEQUENCE OF Ospfv3AreaEntry 
            MAX-ACCESS      not-accessible 
            STATUS          current 
            DESCRIPTION 
                "Information describing the configured  
                parameters and cumulative statistics of
the router's 
                attached areas." 
            REFERENCE 
                "OSPF Version 2, Section 6 The Area Data  
                Structure" 
            ::= { ospfv3Objects 2 } 
 
    ospfv3AreaEntry OBJECT-TYPE 
            SYNTAX          Ospfv3AreaEntry 
            MAX-ACCESS      not-accessible 
            STATUS          current 
            DESCRIPTION 
                "Information describing the configured  
                parameters and cumulative statistics of
one of the 
                router's attached areas." 
            INDEX           { ospfv3AreaId } 
            ::= { ospfv3AreaTable 1 } 
 
    Ospfv3AreaEntry ::= SEQUENCE { 
            ospfv3AreaId 
                    Ospfv3AreaIdTc, 
            [...]
            } 
 
    ospfv3AreaId OBJECT-TYPE 
            SYNTAX          Ospfv3AreaIdTc 
            MAX-ACCESS      not-accessible 
            STATUS          current 
            DESCRIPTION 
                "A 32-bit integer uniquely identifying
an area. 
                Area ID 0 is used for the OSPFv3
backbone." 
            REFERENCE 
                "OSPF Version 2, Appendix C.2 Area
parameters" 
            ::= { ospfv3AreaEntry 1 } 

----------------------------------------------------------------------

>Comment By: Thomas Anders (tanders)
Date: 2006-08-29 22:26

Message:
Logged In: YES 
user_id=848638

Can this be retested against 5.2.3 (or latest V5-2-patches
CVS), please?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1548670&group_id=12694

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic