Browse Source

remove checking for thismodel->INPmodType

pre-master-46
h_vogt 15 years ago
parent
commit
da574eb2bf
  1. 5
      ChangeLog
  2. 4
      src/spicelib/parser/inp2z.c

5
ChangeLog

@ -1,3 +1,8 @@
2011-05-15 Holger Vogt
* inp2z.c: remove checking for thismodel->INPmodType
because this might lead to segfault if the user supplies
a wrong ZXXXXX input
2011-05-08 Robert Larice
* src/frontend/shyu.c ,
* src/frontend/spiceif.c ,

4
src/spicelib/parser/inp2z.c

@ -90,7 +90,9 @@ void INP2Z(CKTcircuit *ckt, INPtables * tab, card * current)
IFC(bindNode, (ckt, fast, 2, node2));
IFC(bindNode, (ckt, fast, 3, node3));
PARSECALL((&line, ckt, type, fast, &leadval, &waslead, tab));
if ( (waslead) && ( thismodel->INPmodType != INPtypelook("MES") ) ) {
/* use type - not thismodel->INPmodType as it might not exist! */
/* FIXME: Why do we need checking for type here? */
if ( (waslead) && ( type /*thismodel->INPmodType*/ != INPtypelook("MES") ) ) {
ptemp.rValue = leadval;
GCA(INPpName, ("area", &ptemp, ckt, type, fast));
}

Loading…
Cancel
Save