(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcom.c) |
| |
| 1040 | | | dissect_dcom_HRESULT_item(tvbuff_t *tvb, int offset, packet_info *pinfo, |
| 1041 | | | proto_tree *tree, guint8 *drep, |
| 1042 | | | guint32 * pu32HResult, int field_index, proto_item **item) |
| 1043 | | | { |
| 1044 | | | guint32 u32HResult; |
| 1045 | | | |
| 1046 | | | |
| 1047 | | | offset = dissect_dcom_DWORD(tvb, offset, pinfo, NULL , drep, |
| 1048 | [+] | | field_index, &u32HResult); |
Event 1:
dissect_ndr_uint32() does not initialize u32HResult. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 1049 | | | |
| 1050 | | | if (tree) { |
Event 3:
Skipping " if". tree evaluates to false.
hide
|
|
| 1051 | | | |
| 1052 | | | *item = proto_tree_add_item (tree, field_index, tvb, offset-4, 4, (drep[0] & 0x10)); |
| 1053 | | | } |
| 1054 | | | |
| 1055 | | | if (pu32HResult) |
Event 4:
Taking true branch. pu32HResult evaluates to true.
hide
|
|
| 1056 | | | *pu32HResult = u32HResult; |
Uninitialized Variable
u32HResult was not initialized. The issue can occur if the highlighted code executes. See related event 1. Show: All events | Only primary events |
|
| |