[AGENT++] receive_snmp_response() recvfrom() unitialized value

Jochen Katz katz at agentpp.com
Sat Nov 6 13:35:48 CET 2004


Hi Richard,

it seems reasonable to zero the struct before usage, no matter whether
it's a bug in libc, the kernel or even valgrind. --> will be in the next
release.

Regards,
   Jochen

Kasperowski, Richard wrote:
> I ran my snmp++ 3.2.14-based application under valgrind on Linux 
> kernel 2.4.20-28.7smp.  valgrind identified an unitialized value thet
>  resulted from one of my many calls to Snmp::get(Pdu&, SnmpTarget 
> const&):

> [...]

> This is very difficult to reproduce, and happens very infrequently, 
> but it appears to be a real bug.  It looks like valgrind is 
> complaining that from_addr has not been initialized.  I think this 
> means that there is a weird case in which recvfrom() doesn't fill it 
> in.



More information about the AGENTPP mailing list