Text   |  XML   |  ReML   |   Visible Warnings:

Redundant Condition  at mate_parser.c:2157

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

Mate_scan_bytes

(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/mate/mate_parser.c)expand/collapse
Show more  
 2138  YY_BUFFER_STATE Mate_scan_bytes  (yyconst char * yybytes, int  _yybytes_len )
 2139  {
 2140          YY_BUFFER_STATE b;
 2141          char *buf;
 2142          yy_size_t n;
 2143          int i;
 2144       
 2145          /* Get memory for full buffer, including space for trailing EOB's. */
 2146          n = _yybytes_len + 2;
 2147          buf = (char *) Matealloc(n  );
 2148          if ( ! buf )
 2149                  YY_FATAL_ERROR( "out of dynamic memory in Mate_scan_bytes()" );
 2150   
 2151          for ( i = 0; i < _yybytes_len; ++i )
 2152                  buf[i] = yybytes[i];
 2153   
 2154          buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
 2155   
 2156          b = Mate_scan_buffer(buf,n );
 2157          if ( ! b )
 2158                  YY_FATAL_ERROR( "bad buffer in Mate_scan_bytes()" );
 2159   
 2160          /* It's okay to grow etc. this buffer, and we should throw it 
 2161           * away when we're done.
 2162           */
 2163          b->yy_is_our_buffer = 1;
 2164   
 2165          return b;
 2166  }
Show more  




Change Warning 3748.30408 : Redundant Condition

Priority:
State:
Finding:
Owner:
Note: