Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at guid-utils.c:132

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);
expand/collapse

guids_get_guid_name

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/guid-utils.c)expand/collapse
Show more  
 122  const gchar *
 123  guids_get_guid_name(e_guid_t *guid)
 124  {
 125          emem_tree_key_t guidkey[2];
 126          guint32 g[4];
 127          char *name;
 128  #ifdef _WIN32 
 129          static char *uuid_name;
 130  #endif
 131   
 132          g[0]=guid->data1;
Show more  
Show more  
Show more  




Change Warning 2260.35016 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: