(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c) |
| |
| 6051 | | | dissect_NOTIFY_INFO_DATA_job(tvbuff_t *tvb, int offset, packet_info *pinfo, |
| 6052 | | | proto_tree *tree, proto_item *item, guint8 *drep, |
| 6053 | | | guint16 field) |
| 6054 | | | { |
| 6055 | | | guint32 value1; |
| 6056 | | | proto_item *hidden_item; |
| 6057 | | | |
| 6058 | | | switch (field) { |
Event 1:
field evaluates to 23.
hide
|
|
| 6059 | | | |
| 6060 | | | |
| 6061 | | | |
| 6062 | | | case JOB_NOTIFY_PRINTER_NAME: |
| 6063 | | | case JOB_NOTIFY_MACHINE_NAME: |
| 6064 | | | case JOB_NOTIFY_PORT_NAME: |
| 6065 | | | case JOB_NOTIFY_USER_NAME: |
| 6066 | | | case JOB_NOTIFY_NOTIFY_NAME: |
| 6067 | | | case JOB_NOTIFY_DATATYPE: |
| 6068 | | | case JOB_NOTIFY_PRINT_PROCESSOR: |
| 6069 6107 |  | | [ Lines 6069 to 6107 omitted. ] |
| 6108 | | | dissect_SYSTEM_TIME_ptr, NDR_POINTER_UNIQUE, |
| 6109 | | | "Time submitted", -1, notify_job_time_cb, NULL); |
| 6110 | | | |
| 6111 | | | break; |
| 6112 | | | |
| 6113 | | | case JOB_NOTIFY_PRIORITY: |
| 6114 | | | case JOB_NOTIFY_POSITION: |
| 6115 | | | case JOB_NOTIFY_TOTAL_PAGES: |
| 6116 | | | case JOB_NOTIFY_PAGES_PRINTED: |
| 6117 | | | case JOB_NOTIFY_TOTAL_BYTES: |
| 6118 | | | case JOB_NOTIFY_BYTES_PRINTED: { |
| 6119 | | | guint32 value; |
| 6120 | | | |
| 6121 | | | offset = dissect_ndr_uint32( |
| 6122 | | | tvb, offset, pinfo, tree, drep, |
| 6123 | [+] | | hf_notify_info_data_value1, &value); |
Event 2:
dissect_ndr_uint32() does not initialize value. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 6124 | | | |
| 6125 | | | offset = dissect_ndr_uint32( |
| 6126 | | | tvb, offset, pinfo, tree, drep, |
| 6127 | | | hf_notify_info_data_value2, NULL); |
| 6128 | | | |
| 6129 | | | proto_item_append_text(item, ": %d", value); |
Uninitialized Variable
value was not initialized. The issue can occur if the highlighted code executes. See related event 2. Show: All events | Only primary events |
|
| |