[AGENT++] asn_parse_int bug

Jochen Katz katz at agentpp.com
Fri Dec 17 12:36:57 CET 2004


Hi again,

>> snmp++ 3.2.14 does not have this bug.

> Snmp++ 3.2.14  have same bug.I just down this version, I'm sure this bug 
> haven't correct.

ok, it's also in 3.2.14 and will be fixed in the next release. Instead
of sizeof(long) a sizeof(*long) is passed to the parse function.

> sizeof(int)=sizeof(int *)=4 in 32 bit OS, but in sizeof(int)!=sizeof(int 
> *) in 64 bit OS

But fortunately sizeof(long) == sizeof(*long) == 8 even on a 64 bit
system, so the bug had no effects until now.

Regards,
  Jochen



More information about the AGENTPP mailing list