(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-netlogon.c) |
| |
| 3542 | | | netlogon_dissect_DELTA_ENUM(tvbuff_t *tvb, int offset, |
| 3543 | | | packet_info *pinfo, proto_tree *parent_tree, |
| 3544 | | | guint8 *drep) |
| 3545 | | | { |
| 3546 | | | proto_item *item=NULL; |
| 3547 | | | proto_tree *tree=NULL; |
| 3548 | | | int old_offset=offset; |
| 3549 | | | guint16 type; |
| 3550 | | | |
| 3551 | | | if(parent_tree){ |
Event 1:
Skipping " if". parent_tree evaluates to false.
hide
|
|
| 3552 | | | item = proto_tree_add_text(parent_tree, tvb, offset, 0, |
| 3553 | | | "DELTA_ENUM:"); |
| 3554 | | | tree = proto_item_add_subtree(item, ett_DELTA_ENUM); |
| 3555 | | | } |
| 3556 | | | |
| 3557 | | | offset = dissect_ndr_uint16(tvb, offset, pinfo, tree, drep, |
| 3558 | [+] | | hf_netlogon_delta_type, &type); |
Event 2:
dissect_ndr_uint16() does not initialize type. - This may be because of a failure case or other special case for dissect_ndr_uint16().
hide
|
|
 |
| 3559 | | | |
| 3560 | | | proto_item_append_text(item, "%s", val_to_str( |
| 3561 | | | type, delta_type_vals, "Unknown")); |
Uninitialized Variable
type was not initialized. The issue can occur if the highlighted code executes. See related event 2. Show: All events | Only primary events |
|
| |