Uninitialize Memory read

Jochen Katz katz____agentpp.com
Tue Feb 22 19:43:54 CET 2000


Hi,

>       As  I ran agent++ in purify,it give this UMR(Uninitialize Memory
>       Read) in Request.cpp line 858 list below:
> 
>     853   snmp_version version;
>     856   int status = snmp->receive(tvptr, pdu, from, version, community);
>     858   target.set_version(version);
> 
>     it  seems  that  if  snmp receive nothing u also use that variable
>     version which is not initialize,so purify give this error msg,as I
>     add  a  line  "version  =  version1;"  after  line  853,purify run
>     silently..

yes, you're right. snmp->receive can return without setting the
version.
It will be changed with the next release.

Regards,
  Jochen



More information about the AGENTPP mailing list