Text   |  XML   |  ReML   |   Visible Warnings:

Redundant Condition  at text2pcap-scanner.c:1521

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

yy_scan_buffer

(/home/sate/Testcases/c/cve/wireshark-1.2.0/text2pcap-scanner.c)expand/collapse
Show more  
 1515  YY_BUFFER_STATE yy_scan_buffer  (char * base, yy_size_t  size )
 1516  {
 1517          YY_BUFFER_STATE b;
 1518       
 1519          if ( size < 2 ||
 1520               base[size-2] != YY_END_OF_BUFFER_CHAR ||
 1521               base[size-1] != YY_END_OF_BUFFER_CHAR )
 1522                  /* They forgot to leave room for the EOB's. */
 1523                  return 0;
 1524   
 1525          b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state )  );
 1526          if ( ! b )
 1527                  YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
 1528   
 1529          b->yy_buf_size = size - 2;      /* "- 2" to take care of EOB's */
 1530          b->yy_buf_pos = b->yy_ch_buf = base;
 1531          b->yy_is_our_buffer = 0;
 1532          b->yy_input_file = 0;
 1533          b->yy_n_chars = b->yy_buf_size;
 1534          b->yy_is_interactive = 0;
 1535          b->yy_at_bol = 1;
 1536          b->yy_fill_buffer = 0;
 1537          b->yy_buffer_status = YY_BUFFER_NEW;
 1538   
 1539          yy_switch_to_buffer(b  );
 1540   
 1541          return b;
 1542  }
Show more  




Change Warning 4916.30304 : Redundant Condition

Priority:
State:
Finding:
Owner:
Note: