This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The FreeBSD SNMP helper cyg_snmp_get_if() exhibits a bug when passed if_num<=0: it loops 2^32 times -- walking through all of memory and then returning a rogue pointer. This can be demonstrated by sending an eCos-based device an SMP "get" request for OID 1.3.6.1.2.1.2.2.1.6.0. Typical behavior is that the device will lock up for several seconds ans the SNMP management thread loops through all of memory. The problem didn't exist in the helper routine for the NetBSD. The attached patch fixes the problem.
Attachment:
eCos-SNMP-interface-helper-bug.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |