(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/profinet/packet-dcom-cba-acco.c) |
| |
| 1789 | | | dissect_ICBAAccoServerSRT_Disconnect_rqst(tvbuff_t *tvb, int offset, |
| 1790 | | | packet_info *pinfo, proto_tree *tree, guint8 *drep) |
| 1791 | | | { |
| 1792 | | | guint32 u32Count; |
| 1793 | | | guint32 u32ArraySize; |
| 1794 | | | guint32 u32Idx; |
| 1795 | | | guint32 u32ProvID; |
| 1796 | | | proto_item *item; |
| 1797 | | | |
| 1798 | | | |
| 1799 | | | offset = dissect_dcom_this(tvb, offset, pinfo, tree, drep); |
| 1800 | | | |
| 1801 | | | item = proto_tree_add_boolean (tree, hf_cba_acco_srt_call, tvb, offset, 0, TRUE); |
Event 1:
!0 evaluates to true.
hide
|
|
| 1802 | | | 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
|
|
| 1803 | | | pinfo->profinet_type = 4; |
| 1804 | | | |
| 1805 | | | offset = dissect_dcom_DWORD(tvb, offset, pinfo, tree, drep, |
| 1806 | | | hf_cba_acco_count, &u32Count); |
| 1807 | | | |
| 1808 | | | offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, drep, |
| 1809 | [+] | | &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
|
|
 |
| 1810 | | | |
| 1811 | | | u32Idx = 1; |
| 1812 | | | 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 |
|
| |