On sön, 2006-11-12 at 00:03 +0100, Thomas Anders wrote:
> Thomas Anders wrote:
> > Thomas Anders wrote:
> >> t/mib.........dubious
> >
> > Here's the offending call that fails on 64-bit:
> >
> > SNMP::translateObj('.iso.org.dod.internet.mgmt.mib-2.system.sysDescr');
>
> Here's the one-line patch that fixes this bug. Somewhat of a no-brainer given
> that on 64-bit platforms "make perltest" fails without it and succeeds once
> it's
> applied.
>
> Incidentally, this fixes some of the compiler warnings that we've been
> discussing in the "5.4 open issues" context and that were believed to be
> somewhat "harmless". Harmless? YMMV.
>
> I'm calling for votes to include this in 5.4.
Hmm.
The calls to __scan_num_objid expects the oid length to be an int*, the
calls to read_objid, get_node and get_wild_node expects it to be a
size_t*
I am thus more inclined towards a patch that also changes the signature
of __scan_num_objid to
static int __scan_num_objid _((char *, oid *, size_t *));
to make the patch more correct.
Additionally this looks like a general fault case that could be present
in more places so maybe a global search for size_t/int confusion might
be in place as well?
/MF
-------------------------------------------------------------------------
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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders