Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at dtd_grammar.c:1278

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

dtd_parse

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dtd_parse.c)expand/collapse
Show more  
 2327  extern dtd_build_data_t* dtd_parse(GString* s) {
 2328   
 2329          input_string = s;
 2330          offset = 0;
 2331          len = (guint) input_string->len;
 2332           
 2333[+]         pParser = DtdParseAlloc(g_malloc);
 2334   
 2335  #ifdef DEBUG_DTD_PARSER 
 2336          DtdParseTrace(stderr, ">>");
 2337  #endif
 2338       
 2339          build_data = g_malloc(sizeof(dtd_build_data_t));
 2340   
 2341          build_data->proto_name = NULL;
 2342          build_data->media_type = NULL;
 2343          build_data->description = NULL;
 2344          build_data->proto_root = NULL;
 2345          build_data->recursion = FALSE;
 2346       
 2347          build_data->elements = g_ptr_array_new();
 2348          build_data->attributes = g_ptr_array_new();
 2349   
 2350          build_data->error = g_string_new("");
 2351           
 2352          location = NULL;
 2353       
 2354          BEGIN DTD;
 2355           
 2356          Dtd_Parse_lex();
 2357   
 2358[+]         DtdParse(pParser, 0, NULL,build_data);
expand/collapse

DtdParse

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dtd_grammar.c)expand/collapse
Show more  
 1262  void DtdParse(
 1263    void *yyp,                   /* The parser */
 1264    int yymajor,                 /* The major token code number */
 1265    DtdParseTOKENTYPE yyminor       /* The value for the token */
 1266    DtdParseARG_PDECL               /* Optional %extra_argument parameter */
 1267  ){
 1268    YYMINORTYPE yyminorunion;
 1269    int yyact;            /* The parser action. */
 1270    int yyendofinput;     /* True if we are at the end of input */
 1271  #ifdef YYERRORSYMBOL 
 1272     int yyerrorhit = 0;   /* True if yymajor has invoked an error */
 1273  #endif
 1274    yyParser *yypParser;  /* The parser */
 1275   
 1276    /* (re)initialize the parser, if necessary */
 1277    yypParser = (yyParser*)yyp;
 1278    if( yypParser->yyidx<0 ){
Show more  
Show more  




Change Warning 3084.30600 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: