Null Pointer Dereference at lemon.c:3454 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
print_stack_union (/home/sate/Testcases/c/cve/wireshark-1.2.0/tools/lemon/lemon.c)![]() | ||||||
![]() | ||||||
3436 | PRIVATE void print_stack_union( | |||||
3437 | FILE *out, /* The output stream */ | |||||
3438 | struct lemon *lemp, /* The main info structure for this parser */ | |||||
3439 | int *plineno, /* Pointer to the line number */ | |||||
3440 | int mhflag) /* True if makeheaders output */ | |||||
3441 | { | |||||
3442 | int lineno = *plineno; /* The line number of the output */ | |||||
3443 | char **types; /* A hash table of datatypes */ | |||||
3444 | int arraysize; /* Size of the "types" array */ | |||||
3445 | int maxdtlength; /* Maximum length of any ".datatype" field. */ | |||||
3446 | char *stddt; /* Standardized name for a datatype */ | |||||
3447 | int i,j; /* Loop counters */ | |||||
3448 | int hash; /* For hashing the name of a type */ | |||||
3449 | const char *name; /* Name of the parser */ | |||||
3450 | ||||||
3451 | /* Allocate and initialize types[] and allocate stddt[] */ | |||||
3452 | arraysize = lemp->nsymbol * 2; | |||||
3453 | types = (char**)calloc( arraysize, sizeof(char*) ); | |||||
3454 | for(i=0; i<arraysize; i++) types[i] = 0;
| |||||
![]() |