(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-fldb.c) |
| |
| 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) |
Event 1:
Skipping " if". parent_tree evaluates to false.
hide
|
|
| 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 | | | |
| 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; |
| 351 | | | if (check_col (pinfo->cinfo, COL_INFO)) |
Event 2:
Taking true branch. check_col(...) evaluates to true.
hide
|
|
| 352 | | | col_append_fstr (pinfo->cinfo, COL_INFO, " Name: %s", name); |
| 353 | | | |
| 354 | | | |
| 355 | | | |
| 356 | | | |
| 357 | | | offset = |
| 358 | | | dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, |
| 359 | [+] | | hf_fldb_vlconf_cell_cellid_high, &cellid_high); |
Event 3:
dissect_ndr_uint32() does not initialize cellid_high. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 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, |
Uninitialized Variable
cellid_high was not initialized. The issue can occur if the highlighted code executes. See related event 3. Show: All events | Only primary events |
|
| 365 | | | cellid_low); |
| |