(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/profinet/packet-dcom-cba-acco.c) |
| |
| 4321 | | | dissect_ICBAAccoMgt_GetDiagnosis_rqst(tvbuff_t *tvb, int offset, |
| 4322 | | | packet_info *pinfo, proto_tree *tree, guint8 *drep) |
| 4323 | | | { |
| 4324 | | | guint32 u32Request; |
| 4325 | | | guint32 u32InLength; |
| 4326 | | | guint32 u32ArraySize; |
| 4327 | | | |
| 4328 | | | |
| 4329 | | | offset = dissect_dcom_this(tvb, offset, pinfo, tree, drep); |
| 4330 | | | |
| 4331 | | | offset = dissect_dcom_DWORD(tvb, offset, pinfo, tree, drep, |
| 4332 | [+] | | hf_cba_acco_diag_req, &u32Request); |
Event 1:
dissect_ndr_uint32() does not initialize u32Request. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 4333 | | | |
| 4334 | | | offset = dissect_dcom_DWORD(tvb, offset, pinfo, tree, drep, |
| 4335 | | | hf_cba_acco_diag_in_length, &u32InLength); |
| 4336 | | | |
| 4337 | | | offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, drep, |
| 4338 | | | &u32ArraySize); |
| 4339 | | | |
| 4340 | | | if(u32ArraySize != 0) { |
Event 3:
Taking true branch. u32ArraySize != 0 evaluates to true.
hide
|
|
| 4341 | | | proto_tree_add_item(tree, hf_cba_acco_diag_data, tvb, offset, u32InLength, FALSE); |
| 4342 | | | } |
| 4343 | | | |
| 4344 | [+] | | if (check_col(pinfo->cinfo, COL_INFO)) { |
 |
| 4345 | | | col_append_fstr(pinfo->cinfo, COL_INFO, ": %s: %u bytes", |
| 4346 | | | val_to_str(u32Request, cba_acco_diag_req_vals, "Unknown request (0x%08x)"), |
Uninitialized Variable
u32Request was not initialized. The issue can occur if the highlighted code executes. See related event 1. Show: All events | Only primary events |
|
| 4347 | | | u32InLength); |
| |