(/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); |
Ignored Return Value
The return value of dissect_ndr_uint16() is never checked in the highlighted execution scenario. - If the return value can indicate an error, the error will be ignored if the highlighted code executes.
- The return value of dissect_ndr_uint16() is checked 99% of the time in this project. CodeSonar is configured to enforce Ignored Return Value checks for any function whose return value is checked at least 96% of the time, unless the function is used fewer than 20 times. (To modify these thresholds, use configuration file parameters RETURN_CHECKER_SAMPLE_SIZE and RETURN_CHECKER_RATIO. To exempt dissect_ndr_uint16() from the Ignored Return Value check, use configuration file parameter RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 990 | | | |
| 991 | | | if (tree) { |
Event 2:
Taking true branch. tree evaluates to true.
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 3:
Taking true branch. pu16WORD evaluates to true.
hide
|
|
| 1002 | | | *pu16WORD = u16WORD; |
| 1003 | | | |
| 1004 | | | return offset; |
| 1005 | | | } |
| |