(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-giop.c) |
| |
| 3643 | | | dissect_giop_locate_request( tvbuff_t * tvb, packet_info * pinfo, |
| 3644 | | | proto_tree * tree, * , |
| 3645 | | | gboolean stream_is_big_endian) |
| 3646 | | | { |
| 3647 | | | guint32 offset = 0; |
| 3648 | | | guint32 request_id; |
| 3649 | | | guint32 len = 0; |
| 3650 | | | proto_tree *locate_request_tree = NULL; |
| 3651 | | | proto_item *tf; |
| 3652 | | | |
| 3653 | | | if (tree) |
| 3654 | | | { |
| 3655 | | | tf = proto_tree_add_text (tree, tvb, offset, -1, |
| 3656 | | | "General Inter-ORB Locate Request"); |
| 3657 | | | if (locate_request_tree == NULL) |
| 3658 | | | { |
| 3659 | | | locate_request_tree = proto_item_add_subtree (tf, ett_giop_locate_request); |
| 3660 | | | |
| 3661 | | | } |
| 3662 | | | } |
| 3663 | | | |
| 3664 | | | request_id = get_CDR_ulong(tvb, &offset, stream_is_big_endian,); |
Ignored Return Value
The return value of get_CDR_ulong() 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 get_CDR_ulong() 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 get_CDR_ulong() from the Ignored Return Value check, use configuration file parameter RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 3665 | | | if (check_col(pinfo->cinfo, COL_INFO)) |
Event 2:
Skipping " if". check_col(...) evaluates to false.
hide
|
|
| 3666 | | | { |
| 3667 | | | col_append_fstr(pinfo->cinfo, COL_INFO, " id=%u op=LocateRequest", request_id); |
| 3668 | | | } |
| 3669 | | | if (locate_request_tree) |
Event 3:
Skipping " if". locate_request_tree evaluates to false.
hide
|
|
| 3670 | | | { |
| 3671 | | | proto_tree_add_text (locate_request_tree, tvb, offset-4, 4, |
| 3672 | | | "Request id: %u", request_id); |
| 3673 | | | } |
| 3674 | | | |
| 3675 | | | if(->GIOP_version.minor < 2)
x /usr/include/sys/sysmacros.h |
| |
66 | # define minor(dev) gnu_dev_minor (dev) |
| |
|
Event 4:
Taking true branch. ->GIOP_version.minor < 2 evaluates to true.
hide
|
|
| 3676 | | | { |
| 3677 | | | len = get_CDR_ulong(tvb, &offset, stream_is_big_endian,); |
| 3678 | | | if (locate_request_tree) |
Event 5:
Skipping " if". locate_request_tree evaluates to false.
hide
|
|
| 3679 | | | { |
| 3680 | | | proto_tree_add_text (locate_request_tree, tvb, offset-4, 4, |
| 3681 | | | "Object Key length: %u", len); |
| 3682 | | | } |
| 3683 | | | |
| 3684 | | | if (len > 0) { |
Event 6:
Taking true branch. len > 0 evaluates to true.
hide
|
|
| 3685 | | | |
| 3686 | | | if(locate_request_tree) |
Event 7:
Skipping " if". locate_request_tree evaluates to false.
hide
|
|
| 3687 | | | { |
| 3688 | | | |
| 3689 | | | proto_tree_add_item(locate_request_tree, hf_giop_objekt_key, tvb, offset-len, len, FALSE); |
| 3690 | | | } |
| 3691 | | | |
| 3692 | | | } |
| 3693 | | | } |
| 3694 | | | else |
| 3695 | | | { |
| 3696 | | | dissect_target_address(tvb, pinfo, &offset, locate_request_tree, |
| 3697 | | | stream_is_big_endian, NULL, NULL); |
| 3698 | | | } |
| 3699 | | | } |
| |