(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/profinet/packet-dcom-cba-acco.c) |
| |
| 1725 | | | dissect_ICBAAccoServer_Disconnect_resp(tvbuff_t *tvb, int offset, |
| 1726 | | | packet_info *pinfo, proto_tree *tree, guint8 *drep) |
| 1727 | | | { |
| 1728 | | | guint32 u32HResult; |
| 1729 | | | guint32 u32Pointer; |
| 1730 | | | guint32 u32ArraySize = 0; |
| 1731 | | | guint32 u32Idx; |
| 1732 | | | guint32 u32Tmp; |
| 1733 | | | proto_item *item; |
| 1734 | | | dcerpc_info *info = (dcerpc_info *)pinfo->private_data; |
| 1735 | | | server_connect_call_t *call = info->call_data->private_data; |
| 1736 | | | cba_connection_t *conn; |
| 1737 | | | |
| 1738 | | | |
| 1739 | | | offset = dissect_dcom_that(tvb, offset, pinfo, tree, drep); |
| 1740 | | | |
| 1741 | | | if(call == NULL) { |
Event 1:
Skipping " if". call == (void *)0 evaluates to false.
hide
|
|
| 1742 | | | expert_add_info_format(pinfo, NULL, PI_UNDECODED, PI_NOTE, |
| 1743 | | | "No request info, response data ignored"); |
| 1744 | | | } |
| 1745 | | | |
| 1746 | | | item = proto_tree_add_boolean (tree, hf_cba_acco_dcom_call, tvb, offset, 0, FALSE); |
| 1747 | | | 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
|
|
| 1748 | | | pinfo->profinet_type = 1; |
| 1749 | | | |
| 1750 | | | offset = dissect_dcom_dcerpc_pointer(tvb, offset, pinfo, tree, drep, |
| 1751 | [+] | | &u32Pointer); |
Event 3:
dissect_dcom_dcerpc_pointer() does not initialize u32Pointer. - This may be because of a failure case or other special case for dissect_dcom_dcerpc_pointer().
hide
|
|
 |
| 1752 | | | |
| 1753 | | | if (u32Pointer) { |
Uninitialized Variable
u32Pointer was not initialized. The issue can occur if the highlighted code executes. See related events 3 and 5. Show: All events | Only primary events |
|
| |