From: Nick B. <ni...@sg...> - 2005-04-21 04:12:47
|
Hi, The attached patch adds an extra API function to libsial. It basically mimic's lcrash's findsym function and exposes the functionality to sial scripts. It also includes one small safety check when parsing scripts, eg: Index: lcrash/sial.c =================================================================== RCS file: /cvsroot/lkcd/lkcd/7.X.X/lkcdutils/lcrash/sial.c,v retrieving revision 1.1 @@ -270,6 +303,7 @@ } else { sp = (dbg_type_t *)kl_find_typenum(tnum); + if(!sp) return 0; if (sp->st_type == KLT_TYPEDEF) { if (!(sp = (dbg_type_t *)sp->st_realtype)) { return 0; Thanks Nick PS I can send these all as a single patch if need be, just let me know. |