(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/profinet/packet-dcerpc-pn-io.c) |
| |
| 6139 | | | (tvbuff_t *tvb, int offset, |
| 6140 | | | packet_info *pinfo, proto_tree *tree, guint8 *drep) |
| 6141 | | | { |
| 6142 | | | guint32 u32ArgsMax; |
| 6143 | | | guint32 u32ArgsLen; |
| 6144 | | | guint32 u32MaxCount; |
| 6145 | | | guint32 u32Offset; |
| 6146 | | | guint32 u32ArraySize; |
| 6147 | | | |
| 6148 | | | proto_item *sub_item; |
| 6149 | | | proto_tree *sub_tree; |
| 6150 | | | guint32 u32SubStart; |
| 6151 | | | |
| 6152 | | | |
| 6153 | [+] | | if (check_col(pinfo->cinfo, COL_PROTOCOL)) |
 |
| 6154 | | | col_add_str(pinfo->cinfo, COL_PROTOCOL, "PNIO-CM"); |
| 6155 | | | |
| 6156 | | | |
| 6157 | | | offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, |
| 6158 | | | hf_pn_io_args_max, &u32ArgsMax); |
| 6159 | | | |
| 6160 | | | offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, |
| 6161 | | | hf_pn_io_args_len, &u32ArgsLen); |
| 6162 | | | |
| 6163 | | | sub_item = proto_tree_add_item(tree, hf_pn_io_array, tvb, offset, 0, FALSE); |
| 6164 | | | sub_tree = proto_item_add_subtree(sub_item, ett_pn_io); |
| 6165 | | | u32SubStart = offset; |
| 6166 | | | |
| 6167 | | | |
| 6168 | | | offset = dissect_ndr_uint32(tvb, offset, pinfo, sub_tree, drep, |
| 6169 | | | hf_pn_io_array_max_count, &u32MaxCount); |
| 6170 | | | offset = dissect_ndr_uint32(tvb, offset, pinfo, sub_tree, drep, |
| 6171 | | | hf_pn_io_array_offset, &u32Offset); |
| 6172 | | | offset = dissect_ndr_uint32(tvb, offset, pinfo, sub_tree, drep, |
| 6173 | [+] | | hf_pn_io_array_act_count, &u32ArraySize); |
Event 3:
dissect_ndr_uint32() does not initialize u32ArraySize. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 6174 | | | |
| 6175 | | | proto_item_append_text(sub_item, ": Max: %u, Offset: %u, Size: %u", |
| 6176 | | | u32MaxCount, u32Offset, u32ArraySize); |
Uninitialized Variable
u32ArraySize was not initialized. The issue can occur if the highlighted code executes. See related event 3. Show: All events | Only primary events |
|
| |