(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-bssgp.c) |
| |
| 1240 | | | bssgp_proto_handoff(bssgp_ie_t *ie, build_info_t *bi, int ie_start_offset, dissector_handle_t handle) { |
| 1241 | | | tvbuff_t *next_tvb=NULL; |
| 1242 | | | |
| 1243 | | | if(ie->value_length > 0) |
| 1244 | | | next_tvb = tvb_new_subset(bi->tvb, bi->offset, -1, -1); |
| 1245 | | | |
| 1246 | | | if (bi->bssgp_tree) { |
| 1247 | | | bssgp_proto_tree_add_ie(ie, bi, ie_start_offset); |
Ignored Return Value
The return value of bssgp_proto_tree_add_ie() 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 bssgp_proto_tree_add_ie() is checked 96% 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 bssgp_proto_tree_add_ie() from the Ignored Return Value check, use configuration file parameter RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 1248 | | | } |
| 1249 | | | if(next_tvb){ |
Event 2:
Taking true branch. next_tvb evaluates to true.
hide
|
|
| 1250 | | | if (handle) { |
Event 3:
Taking false branch. handle evaluates to false.
hide
|
|
| 1251 | | | call_dissector(handle, next_tvb, bi->pinfo, bi->parent_tree); |
| 1252 | | | } |
| 1253 | | | else if (data_handle) { |
Event 4:
Taking true branch. data_handle evaluates to true.
hide
|
|
| 1254 | | | call_dissector(data_handle, next_tvb, bi->pinfo, bi->parent_tree); |
| 1255 | | | } |
| 1256 | | | } |
| 1257 | | | } |
| |