(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/profinet/packet-dcom-cba-acco.c) |
| |
| 2753 | | | dissect_Server_GetProvIDs_resp(tvbuff_t *tvb, int offset, |
| 2754 | | | packet_info *pinfo, proto_tree *tree, guint8 *drep) |
| 2755 | | | { |
| 2756 | | | guint32 u32Count; |
| 2757 | | | guint32 u32Pointer; |
| 2758 | | | guint32 u32ArraySize; |
| 2759 | | | guint32 u32Idx; |
| 2760 | | | guint32 u32ProvID; |
| 2761 | | | guint32 u32HResult; |
| 2762 | | | |
| 2763 | | | |
| 2764 | | | offset = dissect_dcom_that(tvb, offset, pinfo, tree, drep); |
| 2765 | | | |
| 2766 | | | offset = dissect_dcom_DWORD(tvb, offset, pinfo, tree, drep, |
| 2767 | | | hf_cba_acco_count, &u32Count); |
| 2768 | | | |
| 2769 | [+] | | if (check_col(pinfo->cinfo, COL_INFO)) { |
 |
| 2770 | | | if (u32Count) { |
| 2771 | | | col_append_fstr(pinfo->cinfo, COL_INFO, ": Cnt=%u ProvID=", u32Count); |
| 2772 | | | } else { |
| 2773 | | | col_append_fstr(pinfo->cinfo, COL_INFO, ": Cnt=%u", u32Count); |
| 2774 | | | } |
| 2775 | | | } |
| 2776 | | | |
| 2777 | | | offset = dissect_dcom_dcerpc_pointer(tvb, offset, pinfo, tree, drep, |
| 2778 | | | &u32Pointer); |
| 2779 | | | if (u32Pointer) { |
Event 3:
Taking true branch. u32Pointer evaluates to true.
hide
|
|
| 2780 | | | offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, drep, |
| 2781 | [+] | | &u32ArraySize); |
Event 4:
dissect_dcom_dcerpc_array_size() does not initialize u32ArraySize. - This may be because of a failure case or other special case for dissect_dcom_dcerpc_array_size().
hide
|
|
 |
| 2782 | | | |
| 2783 | | | u32Idx = 1; |
| 2784 | | | while (u32ArraySize--) { |
Uninitialized Variable
u32ArraySize was not initialized. The issue can occur if the highlighted code executes. See related events 4 and 6. Show: All events | Only primary events |
|
| |