Browse Source

Prevent crash if number of lines is wrong/not available ...

pre-master-46
Holger Vogt 1 year ago
parent
commit
8e05683592
  1. 5
      src/frontend/numparam/spicenum.c

5
src/frontend/numparam/spicenum.c

@ -311,6 +311,11 @@ nupa_init(void)
dicoS = TMALLOC(dico_t, 1);
initdico(dicoS);
if (dynmaxline < 1) {
fprintf(stderr, "Error: not a valid input deck, check your netlist\n");
controlled_exit(EXIT_BAD);
}
dicoS->dynrefptr = TMALLOC(char*, dynmaxline + 1);
dicoS->dyncategory = TMALLOC(char, dynmaxline + 1);

Loading…
Cancel
Save