(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/profinet/packet-dcom-cba.c) |
| |
| 934 | | | dissect_PBAddressInfo(tvbuff_t *tvb, gint offset, packet_info *pinfo, |
| 935 | | | proto_tree *tree, guint8 *drep, |
| 936 | | | guint32 u32VarType _U_, guint32 u32ArraySize) |
| 937 | | | { |
| 938 | | | guint8 u8ID; |
| 939 | | | guint8 u8Addr; |
| 940 | | | proto_item *sub_item; |
| 941 | | | proto_tree *sub_tree; |
| 942 | | | |
| 943 | | | |
| 944 | | | while(u32ArraySize != 0) { |
Event 1:
Entering loop body. u32ArraySize != 0 evaluates to true.
hide
|
|
| 945 | | | sub_item = proto_tree_add_item(tree, hf_cba_pbaddress, tvb, offset, 2, FALSE); |
| 946 | | | sub_tree = proto_item_add_subtree(sub_item, ett_PBAddress); |
| 947 | | | |
| 948 | | | offset = dissect_dcom_BYTE(tvb, offset, pinfo, sub_tree, drep, |
| 949 | | | hf_cba_pbaddress_system_id, &u8ID); |
| 950 | | | offset = dissect_dcom_BYTE(tvb, offset, pinfo, sub_tree, drep, |
| 951 | [+] | | hf_cba_pbaddress_address, &u8Addr); |
Event 2:
dissect_ndr_uint8() does not initialize u8Addr. - This may be because of a failure case or other special case for dissect_ndr_uint8().
hide
|
|
 |
| 952 | | | u32ArraySize-=2; |
| 953 | | | |
| 954 | | | proto_item_append_text(sub_item, ": ID=0x%x Addr=%u", u8ID, u8Addr); |
Uninitialized Variable
u8Addr was not initialized. The issue can occur if the highlighted code executes. See related event 2. Show: All events | Only primary events |
|
| |