(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ansi_a.c) |
| |
| 10077 | | | bsmap_bearer_upd_req(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len) |
| 10078 | | | { |
| 10079 | | | guint32 curr_offset; |
| 10080 | | | guint32 consumed; |
| 10081 | | | guint curr_len; |
| 10082 | | | |
| 10083 | | | curr_offset = offset; |
| 10084 | | | curr_len = len; |
| 10085 | | | |
| 10086 | | | ELEM_OPT_TLV(ANSI_A_E_A2P_BEARER_SESSION, "");
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ansi_a.c |
| |
8989 | #define ELEM_OPT_TLV(elem_idx, elem_name_addition) \ |
8990 | {\ |
8991 | if ((consumed = elem_tlv(tvb, tree, elem_idx, curr_offset, curr_len, elem_name_addition)) > 0) \ |
8992 | { \ |
8993 | curr_offset += consumed; \ |
8994 | curr_len -= consumed; \ |
8995 | } \ |
8996 | if (curr_len <= 0) return; \ |
8997 | } |
| |
|
| 10087 | | | |
| 10088 | | | ELEM_OPT_TLV(ANSI_A_E_A2P_BEARER_FORMAT, "");
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ansi_a.c |
| |
8989 | #define ELEM_OPT_TLV(elem_idx, elem_name_addition) \ |
8990 | {\ |
8991 | if ((consumed = elem_tlv(tvb, tree, elem_idx, curr_offset, curr_len, elem_name_addition)) > 0) \ |
8992 | { \ |
8993 | curr_offset += consumed; \ |
8994 | curr_len -= consumed; \ |
8995 | } \ |
8996 | if (curr_len <= 0) return; \ |
8997 | } |
| |
|
| 10089 | | | |
| 10090 | | | (curr_len, 0);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ansi_a.c |
| |
917 | #define (edc_len, edc_max_len) \ |
918 | if ((edc_len) > (edc_max_len)) \ |
919 | { \ |
920 | proto_tree_add_text(tree, tvb, \ |
921 | curr_offset, (edc_len) - (edc_max_len), " Data"); \ |
922 | curr_offset += ((edc_len) - (edc_max_len)); \ |
923 | } |
| |
|
Unused Value
The value assigned to curr_offset is never subsequently used on any execution path. |
|
| 10091 | | | } |
| |