[Nagiosplug-devel] RE: nagiosplug- check_snmp

Subhendu Ghosh sghosh at sghosh.org
Thu Nov 14 21:13:05 CET 2002


Another issue in check_snmp - process_arguments()

case 's' and case 'r'

eval_method[jj++] can go out of bounds.  

Since we are only supporting one string match or regex match - and 
always for the last provided OID, should not increment jj.

How jj is determined is an issue since there are a couple of pathways
through the switch statement depending on the order of the arguments on
the command line.

So long as -s and -r are specifed immediately after -o, we are ok.  If we 
get -w, or -c between -o and -s/-r : we will have out of bounds.


-- 
-sg





More information about the Devel mailing list