Menu

#1159 fix integer overflow in disk percent calculations

closed
None
5
2012-11-09
2011-08-05
No

agent/mibgroup/ucd-snmp/disk_hw.c _percent function use int for internal calculations. On FreeBSD it triggers integer overflow for 10Gb+ partitions. Fix it by using unsigned long long

Discussion

  • Wes Hardaker

    Wes Hardaker - 2011-08-08

    Thanks for the patch! It has been applied to the 5.6.x (and later) code branch and the main development tree, and will appear in future releases of the Net-SNMP package.

     

Log in to post a comment.