This is a discussion on Uninitialized argument in vacm functions? within the SNMP Coders forums, part of the Networking and Network Related category; =20 Hi, I faced some problem in the following functions: vacm_parse_config_group vacm_parse_config_view vacm_parse_config_access All of those functions are calling to &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
=20
Hi, I faced some problem in the following functions: vacm_parse_config_group vacm_parse_config_view vacm_parse_config_access All of those functions are calling to "read_config_read_octet_string" which use the un-initialized "len" to calculate the string length. "if (ilen >=3D *len)", In my case , "len" was equal to "3" which cause = the string to be 2 letter's long. The same problem with "if (*str =3D=3D NULL)" , *str wasn't initialized = as well. I have found an oldest message which suggesting to initialize len to VACMSTRINGLEN (http://sourceforge.net/mailarchive/m..._id=3D10687468). Is it the right value for the initialization ? Regards, Ofer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |