(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ansi_a.c) |
| |
| 9779 | | | dtap_flash_with_info_ack(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len) |
| 9780 | | | { |
| 9781 | | | guint32 curr_offset; |
| 9782 | | | guint32 consumed; |
| 9783 | | | guint curr_len; |
| 9784 | | | |
| 9785 | | | curr_offset = offset; |
| 9786 | | | curr_len = len; |
| 9787 | | | |
| 9788 | | | ELEM_OPT_TV(ANSI_A_E_TAG, "");
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ansi_a.c |
| |
9019 | #define ELEM_OPT_TV(elem_idx, elem_name_addition) \ |
9020 | {\ |
9021 | if ((consumed = elem_tv(tvb, tree, elem_idx, curr_offset, elem_name_addition)) > 0) \ |
9022 | { \ |
9023 | curr_offset += consumed; \ |
9024 | curr_len -= consumed; \ |
9025 | } \ |
9026 | if (curr_len <= 0) return; \ |
9027 | } |
| |
|
| 9789 | | | |
| 9790 | | | ELEM_OPT_TLV(ANSI_A_E_SOCI, "");
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 | } |
| |
|
| 9791 | | | |
| 9792 | | | (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. |
|
| 9793 | | | } |
| |