On Mon, 19 Jul 2010 12:03:00 -0400 John wrote:
JG> But later, deep in the net-snmp code, at the top of the routine
JG> asn_build_int(), we fail this sanity test:
JG>
JG> if (intsize != sizeof(long)) {
JG> _asn_size_err(errpre, intsize, sizeof(long));
JG> return NULL;
JG> }
Just change those longs to int32_t.
JG> INTEGER is 4 bytes, now and forever, right? The ASN.1 protocol doesn't
JG> change just because the underlying machine architecture changes.
Yep, but long is used almost everywhere in the code, and a decision was made
not to try and change them to a 32bit type. There are probably many many more
32/64 bit issues in that release, waiting to byte you. (sorry, couldn't
resist!)
Robert
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders