(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-drsuapi.c) |
| |
| 6179 | | | drsuapi_dissect_union_DsRplicaOpOptions(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_) |
| 6180 | | | { |
| 6181 | | | proto_item *item=NULL; |
| 6182 | | | proto_tree *tree=NULL; |
| 6183 | | | int old_offset; |
| 6184 | | | guint16 level; |
| 6185 | | | |
| 6186 | | | ALIGN_TO_2_BYTES;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-nt.h |
| |
59 | #define ALIGN_TO_2_BYTES \ |
60 | { dcerpc_info *xzdi; \ |
61 | xzdi=pinfo->private_data; \ |
62 | if(!xzdi->conformant_run) { \ |
63 | if(offset&0x01) { \ |
64 | offset=(offset&0xfffffffe)+2; \ |
65 | } \ |
66 | } \ |
67 | } |
| |
|
Event 1:
Skipping " if". xzdi->conformant_run evaluates to true.
hide
|
|
| 6187 | | | |
| 6188 | | | old_offset=offset; |
| 6189 | | | if(parent_tree){ |
Event 2:
Skipping " if". parent_tree evaluates to false.
hide
|
|
| 6190 | | | item=proto_tree_add_text(parent_tree, tvb, offset, -1, "DsRplicaOpOptions"); |
| 6191 | | | tree=proto_item_add_subtree(item, ett_drsuapi_DsRplicaOpOptions); |
| 6192 | | | } |
| 6193 | | | |
| 6194 | | | offset=dissect_ndr_uint16(tvb, offset, pinfo, tree, |
| 6195 | [+] | | drep, hf_index, &level); |
Event 3:
dissect_ndr_uint16() does not initialize level. - This may be because of a failure case or other special case for dissect_ndr_uint16().
hide
|
|
 |
| 6196 | | | |
| 6197 | | | switch(level){ |
Uninitialized Variable
level was not initialized. The issue can occur if the highlighted code executes. See related event 3. Show: All events | Only primary events |
|
| |