Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-dcerpc-fldb.c:747

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

dissect_vldbentry

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-fldb.c)expand/collapse
Show more  
 708  dissect_vldbentry (tvbuff_t * tvb, int offset,
 709                     packet_info * pinfo, proto_tree * parent_tree,
 710                     guint8 * drep)
 711  {
 712    proto_item *item = NULL;
 713    proto_tree *tree = NULL;
 714    int old_offset = offset;
 715    const guint8 *volumename, *siteprincipal, *charspares, *lockername;
 716    guint32 volumetype, nservers, sitepartition, sitemaxreplicalatency,
 717      volids_high, volids_low, voltypes, cloneid_high, cloneid_low,
 718      maxtotallatency, hardmaxtotallatency, minimumpouncedally,
 719      defaultmaxreplicalatency, reclaimdally, whenlocked, spare1, spare2,
 720      spare3, spare4;
 721    e_uuid_t siteowner, siteobjid;
 722    gint i;
 723  #define MAXNSERVERS 16
 724  #define MAXVOLTYPES 8
 725  #define MAXLOCKNAMELEN 64
 726   
 727    if (parent_tree)
 728      {
 729        item = proto_tree_add_text (parent_tree, tvb, offset, -1, "vldbentry:");
 730        tree = proto_item_add_subtree (item, ett_fldb_vldbentry);
 731      }
 732   
 733  /*    byte            name[114];      Volume name  */
 734   
 735    proto_tree_add_string (tree, hf_fldb_vldbentry_volumename, tvb, offset, 114,
 736                           tvb_get_ptr (tvb, offset, 114));
 737    volumename = tvb_get_ptr (tvb, offset, 114);
 738    offset += 110;                /* some reason this 114 seems to be incorrect... cutting 4 short to compensate.... */
 739    if (check_col (pinfo->cinfo, COL_INFO))
 740      col_append_fstr (pinfo->cinfo, COL_INFO, " Name: %s", volumename);
 741   
 742    /* unsigned32      volumeType; */
 743    offset =
 744      dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
 745[+]                         hf_fldb_vldbentry_volumetype, &volumetype);
 746    if (check_col (pinfo->cinfo, COL_INFO))
 747      col_append_fstr (pinfo->cinfo, COL_INFO, " Type:%u", volumetype);
Show more  




Change Warning 2022.34406 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: