(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c) |
| |
| 5931 | | | dissect_NOTIFY_INFO_DATA_printer(tvbuff_t *tvb, int offset, packet_info *pinfo, |
| 5932 | | | proto_tree *tree, proto_item *item, |
| 5933 | | | guint8 *drep, guint16 field) |
| 5934 | | | { |
| 5935 | | | guint32 value1; |
| 5936 | | | |
| 5937 | | | switch (field) { |
Event 1:
field evaluates to 18.
hide
|
|
| 5938 | | | |
| 5939 | | | |
| 5940 | | | |
| 5941 | | | case PRINTER_NOTIFY_SERVER_NAME: |
| 5942 | | | case PRINTER_NOTIFY_PRINTER_NAME: |
| 5943 | | | case PRINTER_NOTIFY_SHARE_NAME: |
| 5944 | | | case PRINTER_NOTIFY_DRIVER_NAME: |
| 5945 | | | case : |
| 5946 | | | case PRINTER_NOTIFY_LOCATION: |
| 5947 | | | case PRINTER_NOTIFY_SEPFILE: |
| 5948 5969 |  | | [ Lines 5948 to 5969 omitted. ] |
| 5970 | | | |
| 5971 | | | offset = dissect_printer_attributes( |
| 5972 | | | tvb, offset, pinfo, tree, drep); |
| 5973 | | | |
| 5974 | | | offset = dissect_ndr_uint32( |
| 5975 | | | tvb, offset, pinfo, NULL, drep, |
| 5976 | | | hf_notify_info_data_value2, NULL); |
| 5977 | | | |
| 5978 | | | break; |
| 5979 | | | |
| 5980 | | | case PRINTER_NOTIFY_STATUS: { |
| 5981 | | | guint32 status; |
| 5982 | | | |
| 5983 | | | |
| 5984 | | | |
| 5985 | | | offset = dissect_ndr_uint32( |
| 5986 | | | tvb, offset, pinfo, tree, drep, |
| 5987 | [+] | | hf_printer_status, &status); |
Event 2:
dissect_ndr_uint32() does not initialize status. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 5988 | | | |
| 5989 | | | offset = dissect_ndr_uint32( |
| 5990 | | | tvb, offset, pinfo, NULL, drep, |
| 5991 | | | hf_notify_info_data_value2, NULL); |
| 5992 | | | |
| 5993 | | | proto_item_append_text( |
| 5994 | | | item, ": %s", |
| 5995 | | | val_to_str(status, printer_status_vals, "Unknown")); |
Uninitialized Variable
status was not initialized. The issue can occur if the highlighted code executes. See related event 2. Show: All events | Only primary events |
|
| |