(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/profinet/packet-dcom-cba-acco.c) |
| |
| 2051 | | | dissect_ICBAAccoServerSRT_SetActivation_rqst(tvbuff_t *tvb, int offset, |
| 2052 | | | packet_info *pinfo, proto_tree *tree, guint8 *drep) |
| 2053 | | | { |
| 2054 | | | guint8 u8State; |
| 2055 | | | guint32 u32Count; |
| 2056 | | | guint32 u32ArraySize; |
| 2057 | | | guint32 u32Idx; |
| 2058 | | | guint32 u32ProvID; |
| 2059 | | | proto_item *item; |
| 2060 | | | |
| 2061 | | | |
| 2062 | | | offset = dissect_dcom_this(tvb, offset, pinfo, tree, drep); |
| 2063 | | | |
| 2064 | | | item = proto_tree_add_boolean (tree, hf_cba_acco_srt_call, tvb, offset, 0, TRUE); |
Event 1:
!0 evaluates to true.
hide
|
|
| 2065 | | | PROTO_ITEM_SET_GENERATED(item);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
325 | #define PROTO_ITEM_SET_GENERATED(proto_item) \ |
326 | ((proto_item) ? FI_SET_FLAG((proto_item)->finfo, FI_GENERATED) : 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 2:
item evaluates to false.
hide
|
|
| 2066 | | | pinfo->profinet_type = 4; |
| 2067 | | | |
| 2068 | | | offset = dissect_dcom_BOOLEAN(tvb, offset, pinfo, tree, drep, |
| 2069 | | | hf_cba_acco_conn_state, &u8State); |
| 2070 | | | |
| 2071 | | | offset = dissect_dcom_DWORD(tvb, offset, pinfo, tree, drep, |
| 2072 | | | hf_cba_acco_count, &u32Count); |
| 2073 | | | |
| 2074 | | | offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, drep, |
| 2075 | [+] | | &u32ArraySize); |
Event 3:
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
|
|
 |
| 2076 | | | |
| 2077 | | | u32Idx = 1; |
| 2078 | | | while (u32ArraySize--) { |
Uninitialized Variable
u32ArraySize was not initialized. The issue can occur if the highlighted code executes. See related events 3 and 5. Show: All events | Only primary events |
|
| |