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

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-3563216 ] "netsnmp_extract_table_info" returns wrong size for integer
From:       SourceForge.net <noreply () sourceforge ! net>
Date:       2012-08-30 9:22:42
Message-ID: E1T70xX-0003Vx-Nv () sfs-ml-3 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Bugs item #3563216, was opened at 2012-08-30 02:21
Message generated for change (Settings changed) made by 
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3563216&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: 64-bit
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: KoenB ()
Assigned to: Nobody/Anonymous (nobody)
> Summary: "netsnmp_extract_table_info" returns wrong size for integer 

Initial Comment:
Using 5.7.1 on opensuse 64-bit

We have a subagent that communicates with snmpd (AgentX protocol). The net-snmp \
libraries are linked into our application. We noticed that the function \
"netsnmp_extract_table_info" returns the wrong size (in val_len) for a integer index \
(32bit). On a 32-bit system, the size of integer index is 4 bytes. On a 64-bit system \
this returns 8 bytes. As a temporary measure, i have overridden this back to 4 bytes. \
 If you define a table, with a INTEGER as index; shouldn't \
"netsnmp_extract_table_info, val_len" return 4 instead of 8 ?

Internally net-snmp uses sizeof(long) to populate val_len. This returns 4 on 32-bit, \
and 8 on 64-bit.

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

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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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