(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c) |
| |
| 2695 | | | dissect_notify_field(tvbuff_t *tvb, int offset, packet_info *pinfo, |
| 2696 | | | proto_tree *tree, guint8 *drep, guint16 type, |
| 2697 | | | guint16 *data) |
| 2698 | | | { |
| 2699 | | | guint16 field; |
| 2700 | | | const char *str; |
| 2701 | | | |
| 2702 | | | offset = dissect_ndr_uint16( |
| 2703 | | | tvb, offset, pinfo, NULL, drep, |
| 2704 | [+] | | hf_notify_field, &field); |
Event 1:
dissect_ndr_uint16() does not initialize field. - This may be because of a failure case or other special case for dissect_ndr_uint16().
hide
|
|
 |
| 2705 | | | |
| 2706 | | | switch(type) { |
Event 3:
Executing default case.
hide
|
|
| 2707 | | | case PRINTER_NOTIFY_TYPE: |
| 2708 | | | str = val_to_str(field, printer_notify_option_data_vals, |
| 2709 | | | "Unknown"); |
| 2710 | | | break; |
| 2711 | | | case JOB_NOTIFY_TYPE: |
| 2712 | | | str = val_to_str(field, job_notify_option_data_vals, |
| 2713 | | | "Unknown"); |
| 2714 | | | break; |
| 2715 | | | default: |
| 2716 | | | str = "Unknown notify type"; |
| 2717 | | | break; |
| 2718 | | | } |
| 2719 | | | |
| 2720 | | | proto_tree_add_text(tree, tvb, offset - 2, 2, |
| 2721 | | | "Field: %s (%d)", str, field); |
Uninitialized Variable
field was not initialized. The issue can occur if the highlighted code executes. See related event 1. Show: All events | Only primary events |
|
| |