(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c) |
| |
| 741 | | | static int SpoolssGetPrinterData_r(tvbuff_t *tvb, int offset, |
| 742 | | | packet_info *pinfo, proto_tree *tree, |
| 743 | | | guint8 *drep _U_) |
| 744 | | | { |
| 745 | | | dcerpc_info *di = (dcerpc_info *)pinfo->private_data; |
| 746 | | | dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data; |
| 747 | | | guint32 type; |
| 748 | | | proto_item *hidden_item; |
| 749 | | | |
| 750 | | | hidden_item = proto_tree_add_uint( |
| 751 | | | tree, hf_printerdata, tvb, offset, 0, 1); |
| 752 | | | 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
|
|
| 753 | | | |
| 754 | | | |
| 755 | | | |
| 756 | | | offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, |
| 757 | [+] | | hf_printerdata_type, &type); |
Event 2:
dissect_ndr_uint32() does not initialize type. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 758 | | | |
| 759 | | | if (check_col(pinfo->cinfo, COL_INFO)) { |
Event 4:
Skipping " if". check_col(...) evaluates to false.
hide
|
|
| 760 | | | const char *data = dcv->se_data ? dcv->se_data : "????"; |
| 761 | | | |
| 762 | | | col_append_fstr(pinfo->cinfo, COL_INFO, ", %s", data); |
| 763 | | | } |
| 764 | | | |
| 765 | | | offset = dissect_printerdata_data( |
| 766 | | | tvb, offset, pinfo, tree, drep, type); |
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 |
|
| |