(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/profinet/packet-dcom-cba-acco.c) |
| |
| 2662 | | | dissect_ICBAAccoServerSRT_Connect_resp(tvbuff_t *tvb, int offset, |
| 2663 | | | packet_info *pinfo, proto_tree *tree, guint8 *drep) |
| 2664 | | | { |
| 2665 | | | guint32 u32Pointer; |
| 2666 | | | guint32 u32ArraySize; |
| 2667 | | | guint32 u32Idx = 1; |
| 2668 | | | proto_item *sub_item; |
| 2669 | | | proto_tree *sub_tree; |
| 2670 | | | guint32 u32SubStart; |
| 2671 | | | guint32 u32ProvID; |
| 2672 | | | guint32 u32HResult; |
| 2673 | | | proto_item *item; |
| 2674 | | | dcerpc_info *info = (dcerpc_info *)pinfo->private_data; |
| 2675 | | | server_connect_call_t *call = info->call_data->private_data; |
| 2676 | | | cba_connection_t *conn; |
| 2677 | | | |
| 2678 | | | |
| 2679 | | | offset = dissect_dcom_that(tvb, offset, pinfo, tree, drep); |
| 2680 | | | |
| 2681 | | | if(call == NULL) { |
Event 1:
Taking true branch. call == (void *)0 evaluates to true.
hide
|
|
| 2682 | | | expert_add_info_format(pinfo, NULL, PI_UNDECODED, PI_NOTE, |
| 2683 | | | "No request info, response data ignored"); |
| 2684 | | | } |
| 2685 | | | |
| 2686 | | | item = proto_tree_add_boolean (tree, hf_cba_acco_srt_call, tvb, offset, 0, FALSE); |
| 2687 | | | 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
|
|
| 2688 | | | pinfo->profinet_type = 3; |
| 2689 | | | |
| 2690 | | | offset = dissect_dcom_dcerpc_pointer(tvb, offset, pinfo, tree, drep, |
| 2691 | [+] | | &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
|
|
 |
| 2692 | | | |
| 2693 | | | if(call && call->frame != NULL) { |
Event 7:
Skipping " if". call evaluates to false.
hide
|
|
| 2694 | | | cba_frame_info(tvb, pinfo, tree, call->frame); |
| 2695 | | | } |
| 2696 | | | |
| 2697 | | | 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 |
|
| |