From: SourceForge.net <no...@so...> - 2004-06-24 15:33:58
|
Patches item #979034, was opened at 2004-06-25 00:33 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312694&aid=979034&group_id=12694 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jun Kuriyama (kuriyama) Assigned to: Nobody/Anonymous (nobody) Summary: Use u_long for phys_mem in memory_freebsd2.c Initial Comment: phys_mem will overflow when over 2GB memory without this patch. --- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig Tue Jun 8 11:44:35 2004 +++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Thu Jun 24 23:13:18 2004 @@ -258,7 +258,7 @@ size_t total_size = sizeof(total); int total_mib[] = { CTL_VM, VM_METER }; - long phys_mem; + u_long phys_mem; size_t phys_mem_size = sizeof(phys_mem); int phys_mem_mib[] = { CTL_HW, HW_USERMEM }; ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312694&aid=979034&group_id=12694 |