(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-drsuapi.c) |
| |
| 2565 | | | drsuapi_dissect_union_DsGetNCChangesRequest(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_) |
| 2566 | | | { |
| 2567 | | | proto_item *item=NULL; |
| 2568 | | | proto_tree *tree=NULL; |
| 2569 | | | int old_offset; |
| 2570 | | | guint32 level; |
| 2571 | | | |
| 2572 | | | ALIGN_TO_4_BYTES;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-nt.h |
| |
50 | #define ALIGN_TO_4_BYTES \ |
51 | { dcerpc_info *xzdi; \ |
52 | xzdi=pinfo->private_data; \ |
53 | if(!xzdi->conformant_run) { \ |
54 | if(offset&0x03) { \ |
55 | offset=(offset&0xfffffffc)+4; \ |
56 | } \ |
57 | } \ |
58 | } |
| |
|
Event 1:
Skipping " if". xzdi->conformant_run evaluates to true.
hide
|
|
| 2573 | | | |
| 2574 | | | old_offset=offset; |
| 2575 | | | if(parent_tree){ |
Event 2:
Skipping " if". parent_tree evaluates to false.
hide
|
|
| 2576 | | | item=proto_tree_add_text(parent_tree, tvb, offset, -1, "DsGetNCChangesRequest"); |
| 2577 | | | tree=proto_item_add_subtree(item, ett_drsuapi_DsGetNCChangesRequest); |
| 2578 | | | } |
| 2579 | | | |
| 2580 | | | offset=dissect_ndr_uint32(tvb, offset, pinfo, tree, |
| 2581 | [+] | | drep, hf_index, &level); |
Event 3:
dissect_ndr_uint32() does not initialize level. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 2582 | | | |
| 2583 | | | 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 |
|
| |