(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-fldb.c) |
| |
| 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) |
Event 1:
Skipping " if". parent_tree evaluates to false.
hide
|
|
| 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 | | | |
| 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; |
| 739 | [+] | | if (check_col (pinfo->cinfo, COL_INFO)) |
 |
| 740 | | | col_append_fstr (pinfo->cinfo, COL_INFO, " Name: %s", volumename); |
| 741 | | | |
| 742 | | | |
| 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); |
| 748 | | | |
| 749 | | | |
| 750 | | | offset = |
| 751 | | | dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, |
| 752 | [+] | | hf_fldb_vldbentry_nservers, &nservers); |
Event 8:
dissect_ndr_uint32() does not initialize nservers. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 753 | | | if (check_col (pinfo->cinfo, COL_INFO)) |
Event 10:
Taking true branch. check_col(...) evaluates to true.
hide
|
|
| 754 | | | col_append_fstr (pinfo->cinfo, COL_INFO, " nServers:%u", nservers); |
Uninitialized Variable
nservers was not initialized. The issue can occur if the highlighted code executes. See related event 8. Show: All events | Only primary events |
|
| |