(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcom.c) |
| |
| 980 | | | dissect_dcom_indexed_WORD(tvbuff_t *tvb, int offset, packet_info *pinfo, |
| 981 | | | proto_tree *tree, guint8 *drep, |
| 982 | | | int hfindex, guint16 * pu16WORD, int field_index) |
| 983 | | | { |
| 984 | | | guint16 u16WORD; |
| 985 | | | |
| 986 | | | |
| 987 | | | |
| 988 | | | dissect_dcom_WORD(tvb, offset, pinfo, NULL , drep, |
| 989 | [+] | | hfindex, &u16WORD); |
Event 1:
dissect_ndr_uint16() does not initialize u16WORD. - This may be because of a failure case or other special case for dissect_ndr_uint16().
hide
|
|
 |
| 990 | | | |
| 991 | | | if (tree) { |
Event 3:
Skipping " if". tree evaluates to false.
hide
|
|
| 992 | | | |
| 993 | | | proto_tree_add_uint_format(tree, hfindex, tvb, offset, 2, (drep[0] & 0x10), |
| 994 | | | "%s[%u]: 0x%04x", |
| 995 | | | proto_registrar_get_name(hfindex), |
| 996 | | | field_index, u16WORD); |
| 997 | | | } |
| 998 | | | |
| 999 | | | offset += 2; |
| 1000 | | | |
| 1001 | | | if (pu16WORD) |
Event 4:
Taking true branch. pu16WORD evaluates to true.
hide
|
|
| 1002 | | | *pu16WORD = u16WORD; |
Uninitialized Variable
u16WORD was not initialized. The issue can occur if the highlighted code executes. See related event 1. Show: All events | Only primary events |
|
| |