(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c) |
| |
| 6573 | | | static int SpoolssEnumPrinterDataEx_q(tvbuff_t *tvb, int offset, |
| 6574 | | | packet_info *pinfo, proto_tree *tree, |
| 6575 | | | guint8 *drep) |
| 6576 | | | { |
| 6577 | | | char *key_name; |
| 6578 | | | proto_item *hidden_item; |
| 6579 | | | |
| 6580 | | | hidden_item = proto_tree_add_uint( |
| 6581 | | | tree, hf_printerdata, tvb, offset, 0, 1); |
| 6582 | | | 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
|
|
| 6583 | | | |
| 6584 | | | |
| 6585 | | | |
| 6586 | | | offset = dissect_nt_policy_hnd( |
| 6587 | | | tvb, offset, pinfo, tree, drep, hf_hnd, NULL, NULL, |
| 6588 | | | FALSE, FALSE); |
| 6589 | | | |
| 6590 | | | offset = dissect_ndr_cvstring( |
| 6591 | | | tvb, offset, pinfo, tree, drep, sizeof(guint16), |
| 6592 | [+] | | hf_printerdata_key, TRUE, &key_name); |
Event 2:
!0 evaluates to true.
hide
Event 3:
dissect_ndr_cvstring() does not initialize key_name. - This may be because of a failure case or other special case for dissect_ndr_cvstring().
hide
|
|
 |
| 6593 | | | |
| 6594 | | | if (check_col(pinfo->cinfo, COL_INFO)) |
Event 5:
Skipping " if". check_col(...) evaluates to false.
hide
|
|
| 6595 | | | col_append_fstr(pinfo->cinfo, COL_INFO, ", %s", key_name); |
| 6596 | | | |
| 6597 | | | g_free(key_name); |
Uninitialized Variable
key_name was not initialized. The issue can occur if the highlighted code executes. See related event 3. Show: All events | Only primary events |
|
| |