(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c) |
| |
| 5215 | | | static int SpoolssDeletePrinterData_q(tvbuff_t *tvb, int offset, |
| 5216 | | | packet_info *pinfo, proto_tree *tree, |
| 5217 | | | guint8 *drep) |
| 5218 | | | { |
| 5219 | | | char *value_name; |
| 5220 | | | proto_item *hidden_item; |
| 5221 | | | |
| 5222 | | | hidden_item = proto_tree_add_uint( |
| 5223 | | | tree, hf_printerdata, tvb, offset, 0, 1); |
| 5224 | | | 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
|
|
| 5225 | | | |
| 5226 | | | |
| 5227 | | | |
| 5228 | | | offset = dissect_nt_policy_hnd( |
| 5229 | | | tvb, offset, pinfo, tree, drep, hf_hnd, NULL, NULL, |
| 5230 | | | FALSE, FALSE); |
| 5231 | | | |
| 5232 | | | offset = dissect_ndr_cvstring( |
| 5233 | | | tvb, offset, pinfo, tree, drep, sizeof(guint16), |
| 5234 | [+] | | hf_printerdata_value, TRUE, &value_name); |
Event 2:
!0 evaluates to true.
hide
Event 3:
dissect_ndr_cvstring() does not initialize value_name. - This may be because of a failure case or other special case for dissect_ndr_cvstring().
hide
|
|
 |
| 5235 | | | |
| 5236 | | | if (check_col(pinfo->cinfo, COL_INFO)) |
Event 5:
Skipping " if". check_col(...) evaluates to false.
hide
|
|
| 5237 | | | col_append_fstr(pinfo->cinfo, COL_INFO, ", %s", value_name); |
| 5238 | | | |
| 5239 | | | g_free(value_name); |
Uninitialized Variable
value_name was not initialized. The issue can occur if the highlighted code executes. See related event 3. Show: All events | Only primary events |
|
| |