[Bug 426813] Re: snmpd dies after requests with snmpwalk

Kees Cook kees at ubuntu.com
Wed Sep 16 00:01:13 BST 2009


agent/mibgroup/host/hr_proc.c, around line 183 from the trace-back
shows:

    case HRPROC_LOAD:
        cpu = netsnmp_cpu_get_byIdx( proc_idx & HRDEV_TYPE_MASK, 0 );
        if ( !cpu || !cpu->history || !cpu->history[0].total_hist )
            return NULL;

        long_return  = (cpu->idle_ticks  - cpu->history[0].idle_hist)*100;
        long_return /= (cpu->total_ticks - cpu->history[0].total_hist);

So if cpu->total_ticks - cpu->history[0].total_hist == 0, it'll explode.

-- 
snmpd dies after requests with snmpwalk
https://bugs.launchpad.net/bugs/426813
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in ubuntu.



More information about the Ubuntu-server-bugs mailing list