Text   |  XML   |  ReML   |   Visible Warnings:

Redundant Condition  at radius_dict.c:2469

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

Radius_scan_bytes

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/radius_dict.c)expand/collapse
Show more  
 2450  YY_BUFFER_STATE Radius_scan_bytes  (yyconst char * yybytes, int  _yybytes_len )
 2451  {
 2452          YY_BUFFER_STATE b;
 2453          char *buf;
 2454          yy_size_t n;
 2455          int i;
 2456       
 2457          /* Get memory for full buffer, including space for trailing EOB's. */
 2458          n = _yybytes_len + 2;
 2459          buf = (char *) Radiusalloc(n  );
 2460          if ( ! buf )
 2461                  YY_FATAL_ERROR( "out of dynamic memory in Radius_scan_bytes()" );
 2462   
 2463          for ( i = 0; i < _yybytes_len; ++i )
 2464                  buf[i] = yybytes[i];
 2465   
 2466          buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
 2467   
 2468          b = Radius_scan_buffer(buf,n );
 2469          if ( ! b )
 2470                  YY_FATAL_ERROR( "bad buffer in Radius_scan_bytes()" );
 2471   
 2472          /* It's okay to grow etc. this buffer, and we should throw it 
 2473           * away when we're done.
 2474           */
 2475          b->yy_is_our_buffer = 1;
 2476   
 2477          return b;
 2478  }
Show more  




Change Warning 3548.30404 : Redundant Condition

Priority:
State:
Finding:
Owner:
Note: