(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcom.c) |
| |
| 1095 | | | dissect_dcom_indexed_HRESULT(tvbuff_t *tvb, int offset, packet_info *pinfo, |
| 1096 | | | proto_tree *tree, guint8 *drep, |
| 1097 | | | guint32 * pu32HResult, int field_index) |
| 1098 | | | { |
| 1099 | | | guint32 u32HResult; |
| 1100 | | | proto_item *item = NULL; |
| 1101 | | | |
| 1102 | | | |
| 1103 | | | |
| 1104 | | | offset = dissect_dcom_DWORD(tvb, offset, pinfo, NULL , drep, |
| 1105 | [+] | | hf_dcom_hresult, &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
|
|
 |
| 1106 | | | |
| 1107 | | | if (tree) { |
Event 3:
Skipping " if". tree evaluates to false.
hide
|
|
| 1108 | | | |
| 1109 | | | item = proto_tree_add_uint_format(tree, hf_dcom_hresult, tvb, offset-4, 4, u32HResult, |
| 1110 | | | "HResult[%u]: %s (0x%08x)", field_index, |
| 1111 | | | val_to_str(u32HResult, dcom_hresult_vals, "Unknown"), |
| 1112 | | | u32HResult); |
| 1113 | | | } |
| 1114 | | | |
| 1115 | | | |
| 1116 | | | if(u32HResult & 0x80000000) { |
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 |
|
| |