(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-netlogon.c) |
| |
| 3427 | | | netlogon_dissect_DELTA_ID_UNION(tvbuff_t *tvb, int offset, |
| 3428 | | | packet_info *pinfo, proto_tree *parent_tree, |
| 3429 | | | guint8 *drep) |
| 3430 | | | { |
| 3431 | | | proto_item *item=NULL; |
| 3432 | | | proto_tree *tree=NULL; |
| 3433 | | | int old_offset=offset; |
| 3434 | | | guint16 level; |
| 3435 | | | |
| 3436 | | | if(parent_tree){ |
Event 1:
Skipping " if". parent_tree evaluates to false.
hide
|
|
| 3437 | | | item = proto_tree_add_text(parent_tree, tvb, offset, 0, |
| 3438 | | | "DELTA_ID_UNION:"); |
| 3439 | | | tree = proto_item_add_subtree(item, ett_DELTA_ID_UNION); |
| 3440 | | | } |
| 3441 | | | |
| 3442 | | | offset = dissect_ndr_uint16(tvb, offset, pinfo, tree, drep, |
| 3443 | [+] | | hf_netlogon_delta_type, &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
|
|
 |
| 3444 | | | |
| 3445 | | | 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
|
|
| 3446 | | | 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 |
|
| |