(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcom.c) |
| |
| 1010 | | | dissect_dcom_indexed_DWORD(tvbuff_t *tvb, int offset, packet_info *pinfo, |
| 1011 | | | proto_tree *tree, guint8 *drep, |
| 1012 | | | int hfindex, guint32 * pu32DWORD, int field_index) |
| 1013 | | | { |
| 1014 | | | guint32 u32DWORD; |
| 1015 | | | |
| 1016 | | | |
| 1017 | | | |
| 1018 | | | dissect_dcom_DWORD(tvb, offset, pinfo, NULL , drep, |
| 1019 | [+] | | hfindex, &u32DWORD); |
Event 1:
dissect_ndr_uint32() does not initialize u32DWORD. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 1020 | | | |
| 1021 | | | if (tree) { |
Event 3:
Skipping " if". tree evaluates to false.
hide
|
|
| 1022 | | | |
| 1023 | | | proto_tree_add_uint_format(tree, hfindex, tvb, offset, 4, (drep[0] & 0x10), |
| 1024 | | | "%s[%u]: 0x%08x", |
| 1025 | | | proto_registrar_get_name(hfindex), |
| 1026 | | | field_index, u32DWORD); |
| 1027 | | | } |
| 1028 | | | |
| 1029 | | | offset += 4; |
| 1030 | | | |
| 1031 | | | if (pu32DWORD) |
Event 4:
Taking true branch. pu32DWORD evaluates to true.
hide
|
|
| 1032 | | | *pu32DWORD = u32DWORD; |
Uninitialized Variable
u32DWORD was not initialized. The issue can occur if the highlighted code executes. See related event 1. Show: All events | Only primary events |
|
| |