(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-q932-ros.c) |
| |
| 603 | | | dissect_q932_ros_Reject(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { |
| 604 | | | #line 7 "ros-rej.cnf" |
| 605 | | | const gchar *descr = ""; |
| 606 | | | |
| 607 | | | problem_str[0] = '\0'; |
| 608 | | | |
| 609 | | | offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset, |
| 610 | | | Reject_sequence, hf_index, ett_q932_ros_Reject); |
| 611 | | | |
| 612 | | | #line 11 "ros-rej.cnf" |
| 613 | | | descr = ep_strdup_printf("REJ: %s", problem_str); |
Ignored Return Value
The return value of ep_strdup_printf() 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 ep_strdup_printf() is checked 97% 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 ep_strdup_printf() from the Ignored Return Value check, use configuration file parameter RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 614 | | | |
| 615 | | | if (actx->rose_ctx->apdu_depth >= 0) |
Event 2:
Skipping " if". actx->rose_ctx->apdu_depth >= 0 evaluates to false.
hide
|
|
| 616 | | | proto_item_append_text(proto_item_get_parent_nth(proto_tree_get_parent(tree), actx->rose_ctx->apdu_depth), " %s", descr); |
| 617 | | | if (actx->rose_ctx->fillin_info && check_col(actx->pinfo->cinfo, COL_INFO)) |
Event 3:
Skipping " if". - actx->rose_ctx->fillin_info evaluates to true.
- check_col(...) evaluates to false.
hide
|
|
| 618 | | | col_append_str(actx->pinfo->cinfo, COL_INFO, descr); |
| 619 | | | if (actx->rose_ctx->fillin_ptr) |
Event 4:
Skipping " if". actx->rose_ctx->fillin_ptr evaluates to false.
hide
|
|
| 620 | | | g_strlcat(actx->rose_ctx->fillin_ptr, descr, actx->rose_ctx->fillin_buf_size); |
| 621 | | | |
| 622 | | | return offset; |
| 623 | | | } |
| |