(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-srvsvc.c) |
| |
| 3713 | | | srvsvc_dissect_NetFileCtr(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_) |
| 3714 | | | { |
| 3715 | | | proto_item *item = NULL; |
| 3716 | | | proto_tree *tree = NULL; |
| 3717 | | | int old_offset; |
| 3718 | | | guint32 level; |
| 3719 | | | |
| 3720 | | | 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
|
|
| 3721 | | | |
| 3722 | | | old_offset = offset; |
| 3723 | | | if (parent_tree) { |
Event 2:
Skipping " if". parent_tree evaluates to false.
hide
|
|
| 3724 | | | item = proto_tree_add_text(parent_tree, tvb, offset, -1, "srvsvc_NetFileCtr"); |
| 3725 | | | tree = proto_item_add_subtree(item, ett_srvsvc_srvsvc_NetFileCtr); |
| 3726 | | | } |
| 3727 | | | |
| 3728 | [+] | | offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, 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
|
|
 |
| 3729 | | | 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 |
|
| |