(/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); |
Ignored Return Value
The return value of dissect_ndr_uint32() 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_uint32() is checked 100% 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_uint32() from the Ignored Return Value check, use configuration file parameter RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 1020 | | | |
| 1021 | | | if (tree) { |
Event 2:
Taking true branch. tree evaluates to true.
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 3:
Taking true branch. pu32DWORD evaluates to true.
hide
|
|
| 1032 | | | *pu32DWORD = u32DWORD; |
| 1033 | | | |
| 1034 | | | return offset; |
| 1035 | | | } |
| |