Text   |  XML   |  ReML   |   Visible Warnings:

Useless Assignment  at packet-h264.c:669

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

more_rbsp_data

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-h264.c)expand/collapse
Show more  
 646  more_rbsp_data(proto_tree *tree _U_, tvbuff_t *tvb, packet_info *pinfo _U_, gint bit_offset)
 647  {
 648   
 649          int offset;
 650          int remaining_length;
 651          int last_one_bit;
 652          guint8 b = 0;
 653   
 654          /* XXX might not be the best way of doing things but:
 655           * Serch from the end of the tvb for the first '1' bit 
 656           * assuming that its's the RTBSP stop bit
 657           */
 658   
 659          /* Set offset to the byte we are treating */
 660          offset = bit_offset>>3;
 661          remaining_length = tvb_length_remaining(tvb,offset);
 662          /* If there is more then 2 bytes left there *should* be more data */
 663          if(remaining_length>2){
 664                  return TRUE;
 665          }
 666          /* Start from last bit */
 667          last_one_bit = (tvb_length(tvb) << 3);
 668   
 669          for( b = 0; !b; ){
 670                  last_one_bit--;
 671                  b = tvb_get_bits8(tvb, last_one_bit, 1);
 672          }
 673   
 674          if( last_one_bit == bit_offset){
 675                  return FALSE;
 676          }
 677   
 678          return TRUE;
 679  }
Show more  




Change Warning 2633.31458 : Useless Assignment

Priority:
State:
Finding:
Owner:
Note: