SOURCES: net-snmp-64bit-error-checking.patch - don't break negativ...

gotar gotar at pld-linux.org
Sun Apr 1 00:52:18 CEST 2007


Author: gotar                        Date: Sat Mar 31 22:52:18 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- don't break negative values under 64-bit systems!

---- Files affected:
SOURCES:
   net-snmp-64bit-error-checking.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/net-snmp-64bit-error-checking.patch
diff -u SOURCES/net-snmp-64bit-error-checking.patch:1.1 SOURCES/net-snmp-64bit-error-checking.patch:1.2
--- SOURCES/net-snmp-64bit-error-checking.patch:1.1	Sun Feb 18 11:46:52 2007
+++ SOURCES/net-snmp-64bit-error-checking.patch	Sun Apr  1 00:52:13 2007
@@ -5,12 +5,12 @@
      while (asn_length--)
          value = (value << 8) | *bufp++;
  
-+#if SIZEOF_LONG != 4
++/*#if SIZEOF_LONG != 4
 +    if ((unsigned long)value > 0xffffffff) {
 +        snmp_log(LOG_ERR,"truncating integer value to 32 bits\n");
 +        value &= 0xffffffff;
 +    }
-+#endif
++#endif*/
 +
      DEBUGMSG(("dumpv_recv", "  Integer:\t%ld (0x%.2X)\n", value, value));
  
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/net-snmp-64bit-error-checking.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list