Bug 221682
Summary: | snmp on rh4u4 ia64 does not handle negative values correctly. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | John DeFranco <defranco> |
Component: | net-snmp | Assignee: | Radek Vokál <rvokal> |
Status: | CLOSED DUPLICATE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 4.4 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-01-12 08:11:02 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
John DeFranco
2007-01-06 00:56:16 UTC
FYI: It would appear that this coming from asn_parse_unsigned_int64() routine in the file asn1.c: *datalength -= (int) asn_length + (bufp - data); if (*bufp & 0x80) value = ~value; /* integer is negative */ DEBUGDUMPSETUP("recv", data, bufp - data + asn_length); while (asn_length--) value = (value << 8) | *bufp++; #if SIZEOF_LONG != 4 if (value > 0xffffffff) { snmp_log(LOG_ERR,"truncating uinteger value to 32 bits\n"); value &= 0xffffffff; } #endif This is directly from the net-snmp-5.1.2-11.EL4.7.src.rpm from the rh4U4 distro. This code has been changed quite a bit in this area and looks like overflow and the like is checked for differently which is why this problem is not seen in this version. |