Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-dcom.c:1539

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

dissect_remunk_remqueryinterface_rqst

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcom-remunkn.c)expand/collapse
Show more  
 87  dissect_remunk_remqueryinterface_rqst(tvbuff_t *tvb, int offset,
 88          packet_info *pinfo, proto_tree *tree, guint8 *drep)
 89  {
 90          e_uuid_t ipid;
 91          guint32 u32Refs;
 92          guint16 u16IIDs;
 93          guint32 u32ArraySize;
 94          guint32 u32ItemIdx;
 95          e_uuid_t iid;
 96          dcerpc_info *info = (dcerpc_info *) pinfo->private_data;
 97          remunk_remqueryinterface_call_t *call;
 98   
 99   
 100          offset = dissect_dcom_this(tvb, offset, pinfo, tree, drep);
 101   
 102          offset = dissect_dcom_UUID(tvb, offset, pinfo, tree, drep,  
 103                          hf_dcom_ipid, &ipid);
 104   
 105          offset = dissect_dcom_DWORD(tvb, offset, pinfo, tree, drep,  
 106                          hf_remunk_refs, &u32Refs);
 107   
 108          offset = dissect_dcom_WORD(tvb, offset, pinfo, tree, drep,  
 109                          hf_remunk_iids, &u16IIDs);
 110   
 111          offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, drep,  
 112                                                  &u32ArraySize);
 113   
 114      /* limit the allocation to a reasonable size */
 115      if(u32ArraySize < 100) {
 116              call = se_alloc(sizeof(remunk_remqueryinterface_call_t) + u32ArraySize * sizeof(e_uuid_t));
 117              call->iid_count = u32ArraySize;
 118              call->iids = (e_uuid_t *) (call+1);
 119          info->call_data->private_data = call;
 120      } else {
 121          call = NULL;
 122      }
 123   
 124          for (u32ItemIdx = 0; u32ArraySize--; u32ItemIdx++) {
 125                  offset = dissect_dcom_append_UUID(tvb, offset,  pinfo, tree, drep,
 126[+]                         hf_dcom_iid, u32ItemIdx+1, &iid);
expand/collapse

dissect_dcom_append_UUID

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcom.c)expand/collapse
Show more  
 1502  dissect_dcom_append_UUID(tvbuff_t *tvb, int offset,
 1503          packet_info *pinfo, proto_tree *tree, guint8 *drep,
 1504          int hfindex, int field_index, e_uuid_t *uuid)
 1505  {
 1506          const gchar *uuid_name;
 1507          proto_item *pi;
 1508          header_field_info *hfi;
 1509   
 1510   
 1511          /* XXX - this is far from being performance optimized! */
 1512   
 1513          /* get the UUID, but don't put it into the tree */
 1514          offset = dissect_ndr_uuid_t(tvb, offset, pinfo, NULL, drep,  
 1515[+]                                                 hfindex, uuid);
 1516   
 1517          /* look for a registered uuid name */
 1518[+]         uuid_name = guids_get_uuid_name(uuid);
 1519   
 1520          /* add to the tree */
 1521          hfi = proto_registrar_get_nth(hfindex);
 1522[+]         pi = proto_tree_add_guid_format(tree, hfindex, tvb, offset-16, 16, (e_guid_t *) uuid, "%s", hfi->name);
 1523   
 1524          if (field_index != -1) {
 1525                  proto_item_append_text(pi, "[%u]: ", field_index);
 1526          } else {
 1527                  proto_item_append_text(pi, ": ");
 1528          }
 1529   
 1530          if(uuid_name) {
 1531                  proto_item_append_text(pi, "%s (", uuid_name);
 1532          }
 1533   
 1534          proto_item_append_text(pi, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
 1535                            uuid->Data1, uuid->Data2, uuid->Data3,
 1536                            uuid->Data4[0], uuid->Data4[1],
 1537                            uuid->Data4[2], uuid->Data4[3],
 1538                            uuid->Data4[4], uuid->Data4[5],
 1539                            uuid->Data4[6], uuid->Data4[7]);
Show more  
Show more  




Change Warning 2271.35017 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: