Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-dcom.c:1360

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

dissect_dcom_VARIANT

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcom.c)expand/collapse
Show more  
 1307  dissect_dcom_VARIANT(tvbuff_t *tvb, int offset, packet_info *pinfo,  
 1308                                           proto_tree *tree, guint8 *drep, int hfindex)
 1309  {
 1310          guint32 u32Size;
 1311          guint32 u32RPCRes;
 1312          guint16 u16Res;
 1313          guint32 u32SubStart;
 1314          proto_item *sub_item;
 1315          proto_tree *sub_tree;
 1316          guint16 u16VarType;
 1317          guint32 u32VarType;
 1318   
 1319          guint8  u8Data;
 1320          guint16 u16Data;
 1321          guint32 u32Data;
 1322          gchar cData[500];
 1323          guint32 u32Pointer;
 1324          gfloat  f32Data;
 1325          gdouble f64Data;
 1326   
 1327           
 1328          /* alignment of 8 needed for a VARIANT */
 1329          if (offset % 8) {
 1330                  offset += 8 - (offset % 8);
 1331          }
 1332   
 1333          sub_item = proto_tree_add_item(tree, hfindex, tvb, offset, 0, FALSE);
 1334          sub_tree = proto_item_add_subtree(sub_item, ett_dcom_variant);
 1335          u32SubStart = offset;
 1336   
 1337          /* the following size can be VERY confusing:
 1338           * It is NOT the maximum size of the variant, as one could expect,
 1339           * but the current size of the variant padded to 8 bytes.
 1340           * BUT: The following data does not start AFTER this padding,
 1341           * it starts just after the variant-data (without padding)!!! */
 1342          /* Conclusion: the size given here can be LONGER than the actual size */
 1343          offset = dissect_dcom_DWORD(tvb, offset, pinfo, sub_tree, drep,  
 1344                          hf_dcom_variant_size, &u32Size);
 1345          offset = dissect_dcom_DWORD(tvb, offset, pinfo, sub_tree, drep,  
 1346                          hf_dcom_variant_rpc_res, &u32RPCRes);
 1347          offset = dissect_dcom_VARTYPE(tvb, offset, pinfo, sub_tree, drep,
 1348                                                  &u16VarType);
 1349          offset = dissect_dcom_WORD(tvb, offset, pinfo, sub_tree, drep,  
 1350                          hf_dcom_variant_wres, &u16Res);
 1351          offset = dissect_dcom_WORD(tvb, offset, pinfo, sub_tree, drep,  
 1352                          hf_dcom_variant_wres, &u16Res);
 1353          offset = dissect_dcom_WORD(tvb, offset, pinfo, sub_tree, drep,  
 1354                          hf_dcom_variant_wres, &u16Res);
 1355   
 1356          /* 32 bit VarType (slightly different to the 16 bit one) */
 1357          offset = dissect_dcom_DWORD(tvb, offset, pinfo, sub_tree, drep,  
 1358[+]                         hf_dcom_variant_type32, &u32VarType);
 1359   
 1360          if (u32VarType & WIRESHARK_VT_BYREF) {
Show more  




Change Warning 2229.34925 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: