(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/profinet/packet-dcerpc-pn-io.c) |
| |
| 6185 | | | (tvbuff_t *tvb, int offset, |
| 6186 | | | packet_info *pinfo, proto_tree *tree, guint8 *drep) |
| 6187 | | | { |
| 6188 | | | guint32 u32ArgsLen; |
| 6189 | | | guint32 u32MaxCount; |
| 6190 | | | guint32 u32Offset; |
| 6191 | | | guint32 u32ArraySize; |
| 6192 | | | |
| 6193 | | | proto_item *sub_item; |
| 6194 | | | proto_tree *sub_tree; |
| 6195 | | | guint32 u32SubStart; |
| 6196 | | | |
| 6197 | | | |
| 6198 | | | if (check_col(pinfo->cinfo, COL_PROTOCOL)) |
Event 1:
Taking true branch. check_col(...) evaluates to true.
hide
|
|
| 6199 | | | col_add_str(pinfo->cinfo, COL_PROTOCOL, "PNIO-CM"); |
| 6200 | | | |
| 6201 | | | offset = dissect_PNIO_status(tvb, offset, pinfo, tree, drep); |
| 6202 | | | |
| 6203 | | | |
| 6204 | | | offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, |
| 6205 | | | hf_pn_io_args_len, &u32ArgsLen); |
| 6206 | | | |
| 6207 | | | sub_item = proto_tree_add_item(tree, hf_pn_io_array, tvb, offset, 0, FALSE); |
| 6208 | | | sub_tree = proto_item_add_subtree(sub_item, ett_pn_io); |
| 6209 | | | u32SubStart = offset; |
| 6210 | | | |
| 6211 | | | |
| 6212 | | | offset = dissect_ndr_uint32(tvb, offset, pinfo, sub_tree, drep, |
| 6213 | | | hf_pn_io_array_max_count, &u32MaxCount); |
| 6214 | | | offset = dissect_ndr_uint32(tvb, offset, pinfo, sub_tree, drep, |
| 6215 | | | hf_pn_io_array_offset, &u32Offset); |
| 6216 | | | offset = dissect_ndr_uint32(tvb, offset, pinfo, sub_tree, drep, |
| 6217 | [+] | | hf_pn_io_array_act_count, &u32ArraySize); |
Event 2:
dissect_ndr_uint32() does not initialize u32ArraySize. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 6218 | | | |
| 6219 | | | proto_item_append_text(sub_item, ": Max: %u, Offset: %u, Size: %u", |
| 6220 | | | u32MaxCount, u32Offset, u32ArraySize); |
Uninitialized Variable
u32ArraySize was not initialized. The issue can occur if the highlighted code executes. See related event 2. Show: All events | Only primary events |
|
| |