hi,

The crash is happening in this part of the code.. file "table_iterator.c"

The" table_info = netsnmp_extract_table_info(requests)" returned for invalid 
OID seems to be a NULL value and we crash in 
_clone_varbind(table_info->indexes);

So can I fix this is this way?? Any suggestions please??

if (reqinfo->mode == MODE_GET ||
        reqinfo->mode == MODE_GETNEXT ||
        reqinfo->mode == MODE_GET_STASH ||
        reqinfo->mode == MODE_SET_RESERVE1) {
        /*
         * Count the number of request in the list,
         *   so that we'll know when we're finished
         */
        for(request = requests ; request; request = request->next)
            request_count++;
        notdone = 1;
        while(notdone) {
            notdone = 0;

            /* find first data point */
            if (!index_search) {
                if (free_this_index_search) {
                    /* previously done */
                    index_search = free_this_index_search;
                } else {
                    table_info = netsnmp_extract_table_info(requests);
                    if (table_info == NULL)
                        index_search = 0;
           else
                {
                    index_search = snmp_clone_varbind(table_info->indexes);

                    free_this_index_search = index_search;
                }
                    /* setup, malloc search data: */

-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Monday, October 04, 2010 10:35 AM
To: [email protected]
Subject: RE: SnmpGet with multiple OID's crash!!


Any idea if we have a patch for this issue in net-snmp.

~Anup
_____________________________________________
From: Shankar, Anup
Sent: Friday, September 24, 2010 5:20 PM
To: '[email protected]'
Subject: SnmpGet with multiple OID's crash!!


Hi,,

I have used iterate.conf, for generating the mib2c code. The SNMPGet made with 
muliple oids ( ie with one invalid OID) will let the SNMPD crash, with the 
below trace.

Appreciate your response if this is a know issue., or faced earlier.

#0  0xb7e209f3 in netsnmp_table_iterator_helper_handler ()
   from /usr/lib/libnetsnmphelpers.so.10
#1  0xb7e4809b in netsnmp_call_handler () from /usr/lib/libnetsnmpagent.so.10
#2  0xb7e48494 in netsnmp_call_next_handler ()
   from /usr/lib/libnetsnmpagent.so.10
#3  0xb7e274e2 in table_helper_handler () from /usr/lib/libnetsnmphelpers.so.10
#4  0xb7e4809b in netsnmp_call_handler () from /usr/lib/libnetsnmpagent.so.10
#5  0xb7e4876e in netsnmp_call_handlers () from /usr/lib/libnetsnmpagent.so.10
#6  0xb7e3824a in handle_var_requests () from /usr/lib/libnetsnmpagent.so.10
#7  0xb7e3a000 in handle_pdu () from /usr/lib/libnetsnmpagent.so.10
#8  0xb7e3adf8 in netsnmp_handle_request () from /usr/lib/libnetsnmpagent.so.10
#9  0xb7e3bcbb in handle_snmp_packet () from /usr/lib/libnetsnmpagent.so.10
#10 0xb7d8a1fc in ?? () from /usr/lib/libnetsnmp.so.10

Thx,
Anup


------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to