Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-distcc.c:324

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

dissect_distcc

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-distcc.c)expand/collapse
Show more  
 287  dissect_distcc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
 288  {
 289          int offset=0;
 290          proto_tree *tree=NULL;
 291          proto_item *item=NULL;
 292          char token[4];
 293          guint32 parameter;
 294           
 295   
 296[+]         if (check_col(pinfo->cinfo, COL_PROTOCOL))
 297                  col_set_str(pinfo->cinfo, COL_PROTOCOL, "DISTCC ");
 298   
 299[+]         if (check_col(pinfo->cinfo, COL_INFO))
 300                  col_clear(pinfo->cinfo, COL_INFO);
 301   
 302          if (parent_tree) {
 303                  item = proto_tree_add_item(parent_tree, proto_distcc, tvb, offset,
 304                          -1, FALSE);
 305                  tree = proto_item_add_subtree(item, ett_distcc);
 306          }
 307   
 308          while(1){
 309                  /* we must have at least 12 bytes so we can read the  
 310                     token and the parameter */
 311[+]                 if(tvb_length_remaining(tvb, offset)<12){
 312                          return;
 313                  }
 314   
 315                  /* read the token */
 316                  tvb_memcpy(tvb, token, offset, 4);
 317                  offset+=4;
 318   
 319                  /* read the parameter */
 320                  sscanf(tvb_get_ptr(tvb, offset, 8), "%08x", &parameter);
 321                  offset+=8;
 322   
 323                  if(!strncmp(token, "DIST", 4)){
 324                          offset=dissect_distcc_dist(tvb, pinfo, tree, offset, parameter);
Show more  




Change Warning 2303.33402 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: