(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/profinet/packet-dcom-cba.c) |
| |
| 1072 | | | dissect_ICBAStateEvent_OnStateChanged_rqst(tvbuff_t *tvb, int offset, |
| 1073 | | | packet_info *pinfo, proto_tree *tree, guint8 *drep) |
| 1074 | | | { |
| 1075 | | | guint16 u16NewState; |
| 1076 | | | guint16 u16OldState; |
| 1077 | | | |
| 1078 | | | |
| 1079 | | | offset = dissect_dcom_this(tvb, offset, pinfo, tree, drep); |
| 1080 | | | |
| 1081 | | | offset = dissect_dcom_WORD(tvb, offset, pinfo, tree, drep, |
| 1082 | | | hf_cba_new_state, &u16NewState); |
| 1083 | | | |
| 1084 | | | offset = dissect_dcom_WORD(tvb, offset, pinfo, tree, drep, |
| 1085 | [+] | | hf_cba_old_state, &u16OldState); |
Event 1:
dissect_ndr_uint16() does not initialize u16OldState. - This may be because of a failure case or other special case for dissect_ndr_uint16().
hide
|
|
 |
| 1086 | | | |
| 1087 | [+] | | if (check_col(pinfo->cinfo, COL_INFO)) { |
 |
| 1088 | | | col_append_fstr(pinfo->cinfo, COL_INFO, ": NewState=%s OldState=%s", |
| 1089 | | | val_to_str(u16NewState, cba_state_vals, "Unknown (0x%04x)"), |
| 1090 | | | val_to_str(u16OldState, cba_state_vals, "Unknown (0x%04x)") ); |
Uninitialized Variable
u16OldState was not initialized. The issue can occur if the highlighted code executes. See related event 1. Show: All events | Only primary events |
|
| |