Text   |  XML   |  ReML   |   Visible Warnings:

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

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

dissect_vlconf_cell

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-fldb.c)expand/collapse
Show more  
 324  dissect_vlconf_cell (tvbuff_t * tvb, int offset,
 325                       packet_info * pinfo, proto_tree * parent_tree,
 326                       guint8 * drep)
 327  {
 328   
 329    proto_item *item = NULL;
 330    proto_tree *tree = NULL;
 331    int old_offset = offset;
 332  #define MAXVLCELLCHARS  128 
 333  #define MAXVLHOSTSPERCELL  64 
 334    const guint8 *name, *hostname;
 335    int i;
 336    guint32 cellid_high, cellid_low, numservers, spare1, spare2, spare3, spare4,
 337      spare5;
 338   
 339    if (parent_tree)
 340      {
 341        item = proto_tree_add_text (parent_tree, tvb, offset, -1,
 342                                    "vlconf_cell:");
 343        tree = proto_item_add_subtree (item, ett_fldb_vlconf_cell);
 344      }
 345   
 346    /* byte name[MAXVLCELLCHARS];          Cell name */
 347    proto_tree_add_string (tree, hf_fldb_vlconf_cell_name, tvb, offset, 114,
 348                           tvb_get_ptr (tvb, offset, MAXVLCELLCHARS));
 349    name = tvb_get_ptr (tvb, offset, MAXVLCELLCHARS);
 350    offset += MAXVLCELLCHARS;     /* some reason this 114 seems to be incorrect... cutting 4 short to compensate.... */
 351    if (check_col (pinfo->cinfo, COL_INFO))
 352      col_append_fstr (pinfo->cinfo, COL_INFO, " Name: %s", name);
 353   
 354   
 355    /* afsHyper CellID;                     identifier for that cell  */
 356   
 357    offset =
 358      dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
 359[+]                         hf_fldb_vlconf_cell_cellid_high, &cellid_high);
 360    offset =
 361      dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
 362                          hf_fldb_vlconf_cell_cellid_low, &cellid_low);
 363[+]   if (check_col (pinfo->cinfo, COL_INFO))
 364      col_append_fstr (pinfo->cinfo, COL_INFO, " CellID:%u-%u", cellid_high,
 365                       cellid_low);
Show more  




Change Warning 2018.34403 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: