(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/profinet/packet-dcom-cba-acco.c) |
| |
| 2265 | | | dissect_ICBAAccoServerSRT_ConnectCR_resp(tvbuff_t *tvb, int offset, |
| 2266 | | | packet_info *pinfo, proto_tree *tree, guint8 *drep) |
| 2267 | | | { |
| 2268 | | | guint8 u8FirstConnect; |
| 2269 | | | guint8 u8ProvMac[6]; |
| 2270 | | | guint32 u32ProvCRID = 0; |
| 2271 | | | guint32 u32HResult; |
| 2272 | | | guint32 u32ArraySize; |
| 2273 | | | guint32 u32Idx = 1; |
| 2274 | | | guint32 u32Pointer; |
| 2275 | | | proto_item *sub_item; |
| 2276 | | | proto_tree *sub_tree; |
| 2277 | | | guint32 u32SubStart; |
| 2278 | | | proto_item *item; |
| 2279 | | | dcerpc_info *info = (dcerpc_info *)pinfo->private_data; |
| 2280 | | | server_frame_call_t *call = info->call_data->private_data; |
| 2281 | | | cba_frame_t *frame; |
| 2282 | | | |
| 2283 | | | |
| 2284 | | | offset = dissect_dcom_that(tvb, offset, pinfo, tree, drep); |
| 2285 | | | |
| 2286 | | | if(call == NULL) { |
Event 1:
Skipping " if". call == (void *)0 evaluates to false.
hide
|
|
| 2287 | | | expert_add_info_format(pinfo, NULL, PI_UNDECODED, PI_NOTE, |
| 2288 | | | "No request info, response data ignored"); |
| 2289 | | | } |
| 2290 | | | |
| 2291 | | | item = proto_tree_add_boolean (tree, hf_cba_acco_srt_call, tvb, offset, 0, FALSE); |
| 2292 | | | 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
|
|
| 2293 | | | pinfo->profinet_type = 3; |
| 2294 | | | |
| 2295 | | | offset = dissect_dcom_BOOLEAN(tvb, offset, pinfo, tree, drep, |
| 2296 | | | hf_cba_acco_server_first_connect, &u8FirstConnect); |
| 2297 | | | |
| 2298 | | | |
| 2299 | | | tvb_memcpy(tvb, u8ProvMac, offset, 6); |
| 2300 | | | |
| 2301 | | | proto_tree_add_ether(tree, hf_cba_acco_serversrt_prov_mac, tvb, |
| 2302 | | | offset, 6, u8ProvMac); |
| 2303 | | | offset += 6; |
| 2304 | | | |
| 2305 | | | |
| 2306 | | | offset = dissect_dcom_dcerpc_pointer(tvb, offset, pinfo, tree, drep, |
| 2307 | [+] | | &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
|
|
 |
| 2308 | | | 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 |
|
| |