Ethereal-dev: [Ethereal-dev] Recent Red Had ucd-snmp packages

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Gerald Combs <gerald@xxxxxxxxxxxx>
Date: Tue, 11 Dec 2001 23:32:46 -0600 (CST)
I just discovered an interesting feature in recent Red Hat Linux ucd-snmp
packages.  All updated ucd-snmp packages for RHL 6.2 - 7.1 as well as the
ones that ship with 7.2 redefine sprint_objid and sprint_value as follows:

char * sprint_objid(struct sbuf *buf, oid *objid, size_t objidlen)

sprint_value(struct sbuf *buf,
             oid *objid,
             size_t objidlen,
             struct variable_list *variable)

An sbuf is defined as:

struct sbuf {
       char *          base;
       char *          ptr;
       char *          end;
};

Ethereal passes a char * as the first argument to these functions, which
causes a segfault with the modified libraries.  The version of Ethereal
that ships with Red Hat 7.2 is linked with libsnmp, and it dumps core when
it encounters an SNMP packet.  I filed a bug report with Red Hat
(http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=57421).  I've also
checked in a workaround.