
Damian Gilmurray writes:
Damian> The following code and MIB results in a SIGSEGV from libsmi if Damian> the IMPORTed MIBs are unavailable. The offending code is Damian> check.c:933 which attempts to dereference object->typePtr Damian> which is NULL.
I think the solution here is to not perform the test if the type itself is not known. Here is the patch I have just checked into the CVS.
/js
Index: check.c =================================================================== RCS file: /usr/home/strauss/.cvs-repository/libsmi/lib/check.c,v retrieving revision 1.24 diff -u -r1.24 check.c --- check.c 2001/08/22 17:51:42 1.24 +++ check.c 2001/09/16 20:36:13 @@ -925,7 +925,8 @@ { List *p, *nextPtr;
- if (object->export.value.basetype != SMI_BASETYPE_UNKNOWN) { + if (object->export.value.basetype != SMI_BASETYPE_UNKNOWN + && object->typePtr) {
/* * If defval type and object type don't match, check whether
-- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de. !! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.