Text   |  XML   |  ReML   |   Visible Warnings:

Leak  at uat_load.c:2062

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

uat_load

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c)expand/collapse
Show more  
 2050  gboolean uat_load(uat_t* uat_in, char** err) {
 2051          gchar* fname = uat_get_actual_filename(uat_in, FALSE);
 2052   
 2053          uat = uat_in;
 2054          parse_str = NULL;
 2055   
 2056          if (!fname) {
 2057                  UAT_UPDATE(uat);
 2058                  return TRUE;
 2059          }
 2060   
 2061   
 2062          if (!(uat_load_in = ws_fopen(fname,"r"))) {
 2063                  *err = strerror(errno);
 2064                  g_free(fname);
 2065                  return FALSE;
 2066          }
 2067   
 2068          error = NULL;
 2069          colnum = 0;
 2070          record = g_malloc0(uat->record_size);
 2071          linenum = 1;
 2072   
 2073          BEGIN START_OF_LINE;
 2074          DUMP(fname);
 2075          g_free(fname);  /* we're done with the file name now */
 2076   
 2077[+]         uat_load_lex();
expand/collapse

uat_load_lex

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c)expand/collapse
Show more  
 801  YY_DECL 
 802  {
 803          register yy_state_type yy_current_state;
 804          register char *yy_cp, *yy_bp;
 805          register int yy_act;
 806       
 807  #line 149 "uat_load.l"
 808   
 809  #line 810 "uat_load.c"
 810   
 811          if ( !(yy_init) )
 812                  {
 813                  (yy_init) = 1;
 814   
 815  #ifdef YY_USER_INIT 
 816                  YY_USER_INIT;
 817  #endif
 818   
 819                  if ( ! (yy_start) )
 820                          (yy_start) = 1; /* first start state */
 821   
 822                  if ( ! uat_load_in )
 823                          uat_load_in = stdin;
 824   
 825                  if ( ! uat_load_out )
 826                          uat_load_out = stdout;
 827   
 828                  if ( ! YY_CURRENT_BUFFER ) {
 829                          uat_load_ensure_buffer_stack ();
 830                          YY_CURRENT_BUFFER_LVALUE =
 831                                  uat_load__create_buffer(uat_load_in,YY_BUF_SIZE );
 832                  }
 833   
 834[+]                 uat_load__load_buffer_state( );
expand/collapse

uat_load__load_buffer_state

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/uat_load.c)expand/collapse
Show more  
 1542  static void uat_load__load_buffer_state  (void)
 1543  {
 1544          (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
 1545          (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
 1546          uat_load_in = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
 1547          (yy_hold_char) = *(yy_c_buf_p);
Show more  
Show more  
Show more  




Change Warning 12091.30486 : Leak

Priority:
State:
Finding:
Owner:
Note: