(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-lsa.c) |
| |
| 4916 | | | lsarpc_dissect_lsa_TrustedDomainInfo(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_) |
| 4917 | | | { |
| 4918 | | | proto_item *item = NULL; |
| 4919 | | | proto_tree *tree = NULL; |
| 4920 | | | int old_offset; |
| 4921 | | | guint16 level; |
| 4922 | | | |
| 4923 | | | old_offset = offset; |
| 4924 | | | if (parent_tree) { |
Event 1:
Skipping " if". parent_tree evaluates to false.
hide
|
|
| 4925 | | | item = proto_tree_add_text(parent_tree, tvb, offset, -1, "lsa_TrustedDomainInfo"); |
| 4926 | | | tree = proto_item_add_subtree(item, ett_lsarpc_lsa_TrustedDomainInfo); |
| 4927 | | | } |
| 4928 | | | |
| 4929 | [+] | | offset = dissect_ndr_uint16(tvb, offset, pinfo, tree, drep, hf_index, &level); |
Event 2:
dissect_ndr_uint16() does not initialize level. - This may be because of a failure case or other special case for dissect_ndr_uint16().
hide
|
|
 |
| 4930 | | | 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 4:
Skipping " if". xzdi->conformant_run evaluates to true.
hide
|
|
| 4931 | | | |
| 4932 | | | switch(level) { |
Uninitialized Variable
level was not initialized. The issue can occur if the highlighted code executes. See related event 2. Show: All events | Only primary events |
|
| |