Bug 171996
Summary: | Net-SNMP can't handle 64-bit CPU values, return values | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Hrunting Johnson <redhat> | ||||||||
Component: | net-snmp | Assignee: | Radek Vokál <rvokal> | ||||||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 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: | 2005-11-01 13:37:59 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: | |||||||||||
Attachments: |
|
Description
Hrunting Johnson
2005-10-28 21:00:05 UTC
Created attachment 120521 [details]
Patch to fix reading of 64-bit CPU and interrupt counters
This patch is taken from net-snmp-5.2.2pre4, which is the latest release to
contain this fix. It's relatively minor, changing the sscanf to grab
long-longs and then converting them to unsigned longs.
Created attachment 120522 [details] 64-bit return value check patch This patch checks the size of long on the host system and if it's longer than 4 bytes, truncates the returning value for fields that are only 32-bits wide. This patch was taken from net-snmp-5.2.2pre4, which is the latest version to contain this fix. It's a relatively clean patch. This patch is basically the same as that found at this URL: http://sourceforge.net/tracker/download.php?group_id=12694&atid=456380&file_id=146117&aid=1259966 Created attachment 120523 [details] 64-bit return value check patch This patch checks the size of long on the host system and if it's longer than 4 bytes, truncates the returning value for fields that are only 32-bits wide. This patch was taken from net-snmp-5.2.2pre4, which is the latest version to contain this fix. It's a relatively clean patch. This patch is basically the same as that found at this URL: http://sourceforge.net/tracker/download.php?group_id=12694&atid=456380&file_id=146117&aid=1259966 [Updated to be the right patch] I've updated rawhide to net-snmp-5.2.2.rc3 so this issue is fixed there. |