(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-h248_annex_c.c) |
| |
| 767 | | | static void dissect_h248_annexc_NSAP(proto_tree* tree, |
| 768 | | | tvbuff_t* tvb, |
| 769 | | | packet_info* pinfo, |
| 770 | | | int hfid, |
| 771 | | | h248_curr_info_t* h248_info, |
| 772 | | | void* implicit_p ) { |
| 773 | | | tvbuff_t* new_tvb = NULL; |
| 774 | | | asn1_ctx_t asn1_ctx; |
| 775 | | | |
| 776 | | | asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); |
| 777 | | | dissect_ber_octet_string(implicit_p ? *((gboolean*)implicit_p) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, &new_tvb); |
Ignored Return Value
The return value of dissect_ber_octet_string() 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_ber_octet_string() is checked 98% 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_ber_octet_string() from the Ignored Return Value check, use configuration file parameter RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 778 | | | if (new_tvb) { |
Event 2:
Taking true branch. new_tvb evaluates to true.
hide
|
|
| 779 | | | dissect_nsap(new_tvb, 0,tvb_length(new_tvb), tree); |
| 780 | | | if ( h248_info->term && ! h248_info->term->nsap) { |
| 781 | | | h248_info->term->nsap = se_strdup(tvb_bytes_to_str(new_tvb,0,tvb_length(new_tvb))); |
| 782 | | | } |
| 783 | | | } |
| 784 | | | } |
| |