Text   |  XML   |  ReML   |   Visible Warnings:

Redundant Condition  at diam_dict.c:2710

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

DiamDict_scan_bytes

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/diam_dict.c)expand/collapse
Show more  
 2691  YY_BUFFER_STATE DiamDict_scan_bytes  (yyconst char * yybytes, int  _yybytes_len )
 2692  {
 2693          YY_BUFFER_STATE b;
 2694          char *buf;
 2695          yy_size_t n;
 2696          int i;
 2697       
 2698          /* Get memory for full buffer, including space for trailing EOB's. */
 2699          n = _yybytes_len + 2;
 2700          buf = (char *) DiamDictalloc(n  );
 2701          if ( ! buf )
 2702                  YY_FATAL_ERROR( "out of dynamic memory in DiamDict_scan_bytes()" );
 2703   
 2704          for ( i = 0; i < _yybytes_len; ++i )
 2705                  buf[i] = yybytes[i];
 2706   
 2707          buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
 2708   
 2709          b = DiamDict_scan_buffer(buf,n );
 2710          if ( ! b )
 2711                  YY_FATAL_ERROR( "bad buffer in DiamDict_scan_bytes()" );
 2712   
 2713          /* It's okay to grow etc. this buffer, and we should throw it 
 2714           * away when we're done.
 2715           */
 2716          b->yy_is_our_buffer = 1;
 2717   
 2718          return b;
 2719  }
Show more  




Change Warning 3529.30398 : Redundant Condition

Priority:
State:
Finding:
Owner:
Note: