(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/profinet/packet-dcom-cba-acco.c) |
| |
| 2008 | | | dissect_ICBAAccoServer_SetActivation_rqst(tvbuff_t *tvb, int offset, |
| 2009 | | | packet_info *pinfo, proto_tree *tree, guint8 *drep) |
| 2010 | | | { |
| 2011 | | | guint8 u8State; |
| 2012 | | | guint32 u32Count; |
| 2013 | | | guint32 u32ArraySize; |
| 2014 | | | guint32 u32Idx; |
| 2015 | | | guint32 u32ProvID; |
| 2016 | | | proto_item *item; |
| 2017 | | | |
| 2018 | | | |
| 2019 | | | offset = dissect_dcom_this(tvb, offset, pinfo, tree, drep); |
| 2020 | | | |
| 2021 | | | item = proto_tree_add_boolean (tree, hf_cba_acco_dcom_call, tvb, offset, 0, TRUE); |
Event 1:
!0 evaluates to true.
hide
|
|
| 2022 | | | 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
|
|
| 2023 | | | pinfo->profinet_type = 2; |
| 2024 | | | |
| 2025 | | | offset = dissect_dcom_BOOLEAN(tvb, offset, pinfo, tree, drep, |
| 2026 | | | hf_cba_acco_conn_state, &u8State); |
| 2027 | | | |
| 2028 | | | offset = dissect_dcom_DWORD(tvb, offset, pinfo, tree, drep, |
| 2029 | | | hf_cba_acco_count, &u32Count); |
| 2030 | | | |
| 2031 | | | offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, drep, |
| 2032 | [+] | | &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
|
|
 |
| 2033 | | | |
| 2034 | | | u32Idx = 1; |
| 2035 | | | 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 |
|
| |