Red Hat Bugzilla – Bug 35016
Program can't handle a null character
Last modified: 2007-03-26 23:43:18 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
Dell would like to see this patch added to 7.1
The basic fix is to patch ucd-snmp/pass.c as follows:
< if (bin2asc(buf2, var_val_len) ==
< sprintf(buf,"string %s",buf2);
> if (var_val_len == 0)
> else if (bin2asc(buf2, var_val_len) ==
Net-snmp has had a chance to reproduce provide the above fix and include
this fix into their tree. The request is for RedHat to include this patch
as part of their 7.1 releases.
Also information from sourceforge is provided below:
Steps to Reproduce:
1. See code patch
I've built ucd-snmp-4.2-12 and have submitted it for approval.
approved this morning.
Created attachment 30834 [details]
Created attachment 30835 [details]
Note that the bad (current patch) has a printf(buf,"string\"\""); which should
be a sprintf (good patch)
corrected in 4.2.1-7 and later.