Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-dcom-cba-acco.c:2357

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

dissect_ICBAAccoServerSRT_ConnectCR_resp

(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/profinet/packet-dcom-cba-acco.c)expand/collapse
Show more  
 2265  dissect_ICBAAccoServerSRT_ConnectCR_resp(tvbuff_t *tvb, int offset,
 2266          packet_info *pinfo, proto_tree *tree, guint8 *drep)
 2267  {
 2268          guint8 u8FirstConnect;
 2269          guint8 u8ProvMac[6];
 2270          guint32 u32ProvCRID = 0;
 2271          guint32 u32HResult;
 2272          guint32 u32ArraySize;
 2273          guint32 u32Idx = 1;
 2274          guint32 u32Pointer;
 2275          proto_item *sub_item;
 2276          proto_tree *sub_tree;
 2277          guint32 u32SubStart;
 2278          proto_item *item;
 2279      dcerpc_info *info = (dcerpc_info *)pinfo->private_data;
 2280      server_frame_call_t *call = info->call_data->private_data;
 2281      cba_frame_t *frame;
 2282   
 2283   
 2284      offset = dissect_dcom_that(tvb, offset, pinfo, tree, drep);
 2285   
 2286      if(call == NULL) {
 2287              expert_add_info_format(pinfo, NULL, PI_UNDECODED, PI_NOTE,  
 2288              "No request info, response data ignored");
 2289      }
 2290   
 2291      item = proto_tree_add_boolean (tree, hf_cba_acco_srt_call, tvb, offset, 0, FALSE);
 2292      PROTO_ITEM_SET_GENERATED(item);
 2293      pinfo->profinet_type = 3;
 2294   
 2295          offset = dissect_dcom_BOOLEAN(tvb, offset, pinfo, tree, drep,  
 2296[+]                         hf_cba_acco_server_first_connect, &u8FirstConnect);
 2297   
 2298          /* ProviderMAC (big-endian, 1byte-aligned) */
 2299          tvb_memcpy(tvb, u8ProvMac, offset, 6);
 2300   
 2301          proto_tree_add_ether(tree, hf_cba_acco_serversrt_prov_mac, tvb,  
 2302                  offset, 6, u8ProvMac);
 2303          offset += 6;
 2304   
 2305   
 2306          offset = dissect_dcom_dcerpc_pointer(tvb, offset, pinfo, tree, drep,  
 2307                                                  &u32Pointer);
 2308          if (u32Pointer) {
 2309   
 2310                  offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, drep,  
 2311                                                          &u32ArraySize);
 2312   
 2313                  while (u32ArraySize--) {
 2314                          /* array of CONNECTOUTCRs */
 2315                          sub_item = proto_tree_add_item(tree, hf_cba_connectoutcr, tvb, offset, 0, FALSE);
 2316                          sub_tree = proto_item_add_subtree(sub_item, ett_cba_connectoutcr);
 2317                          u32SubStart = offset;
 2318   
 2319
2333
Show [ Lines 2319 to 2333 omitted. ]
 2334                          /* update subtree header */
 2335                          proto_item_append_text(sub_item, "[%u]: ProvCRID=0x%x, %s",  
 2336                                  u32Idx, u32ProvCRID,  
 2337                      val_to_str(u32HResult, dcom_hresult_vals, "Unknown (0x%08x)") );
 2338                          proto_item_set_len(sub_item, offset - u32SubStart);
 2339   
 2340                          u32Idx++;
 2341                  }
 2342          }
 2343   
 2344          offset = dissect_dcom_HRESULT(tvb, offset, pinfo, tree, drep,  
 2345                          &u32HResult);
 2346   
 2347      /* this might be a global HRESULT */
 2348      while(call && u32Idx <= call->frame_count) {
 2349          frame = call->frames[u32Idx-1];
 2350          frame->provcrid = 0;
 2351          frame->conncrret = u32HResult;
 2352          u32Idx++;
 2353      }
 2354   
 2355[+]         if (check_col(pinfo->cinfo, COL_INFO)) {
 2356                  col_append_fstr(pinfo->cinfo, COL_INFO, ": %s PCRID=0x%x -> %s",
 2357                          (u8FirstConnect) ? "FirstCR" : "NotFirstCR",
 2358                          u32ProvCRID,
 2359                          val_to_str(u32HResult, dcom_hresult_vals, "Unknown (0x%08x)") );
Show more  




Change Warning 3811.35098 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: