(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c) |
| |
| 3614 | | | static int SpoolssEnumForms_q(tvbuff_t *tvb, int offset, packet_info *pinfo, |
| 3615 | | | proto_tree *tree, guint8 *drep _U_) |
| 3616 | | | { |
| 3617 | | | dcerpc_info *di = (dcerpc_info *)pinfo->private_data; |
| 3618 | | | dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data; |
| 3619 | | | guint32 level; |
| 3620 | | | proto_item *hidden_item; |
| 3621 | | | |
| 3622 | | | hidden_item = proto_tree_add_uint( |
| 3623 | | | tree, hf_form, tvb, offset, 0, 1); |
| 3624 | | | PROTO_ITEM_SET_HIDDEN(hidden_item);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
319 | #define PROTO_ITEM_SET_HIDDEN(proto_item) \ |
320 | ((proto_item) ? FI_SET_FLAG((proto_item)->finfo, FI_HIDDEN) : 0) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
246 | #define FI_SET_FLAG(fi, flag) (fi->flags = fi->flags | flag) |
| |
|
Event 1:
hidden_item evaluates to false.
hide
|
|
| 3625 | | | |
| 3626 | | | |
| 3627 | | | |
| 3628 | | | offset = dissect_nt_policy_hnd( |
| 3629 | | | tvb, offset, pinfo, tree, drep, hf_hnd, NULL, NULL, |
| 3630 | | | FALSE, FALSE); |
| 3631 | | | |
| 3632 | | | offset = dissect_ndr_uint32( |
| 3633 | [+] | | tvb, offset, pinfo, tree, drep, hf_level, &level); |
Event 2:
dissect_ndr_uint32() does not initialize level. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 3634 | | | |
| 3635 | | | |
| 3636 | | | if(!pinfo->fd->flags.visited){ |
Event 4:
Taking true branch. pinfo->fd->flags.visited evaluates to false.
hide
|
|
| 3637 | | | dcv->se_data = GINT_TO_POINTER((int)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 |
|
| |