Hello,

Apparently the patch with ID 1627049
(http://sourceforge.net/tracker/index.php?func=detail&aid=1627049&group_id=12694&atid=312694)
has been applied on the 5.5pre branch. Please revert this patch --
this patch not only causes portability problems but IMHO it's the
wrong way to fix the observed problem (crash on Linux with a file or
socket descriptor >= FD_SETSIZE).

The real bug is that several Net-SNMP functions create (local)
variables of type fd_set and then use the macro FD_SET() without
checking that the first argument (fd) is lower than FD_SETSIZE. This
will cause memory corruption when fd >= FD_SETSIZE. See e.g. the
functions that call snmp_select_info(). I assume that libnetsnmp has
to be backwards compatible ? One possible solution is to add a new
function that has the same functionality as snmp_select_info, except
that it allocates memory itself for file descriptor sets and returns
pointers to these sets.

Bart.

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to