(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ansi_a.c) |
| |
| 9859 | | | bsmap_paca_command(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len) |
| 9860 | | | { |
| 9861 | | | guint32 curr_offset; |
| 9862 | | | guint32 consumed; |
| 9863 | | | guint curr_len; |
| 9864 | | | |
| 9865 | | | curr_offset = offset; |
| 9866 | | | curr_len = len; |
| 9867 | | | |
| 9868 | | | ELEM_OPT_TLV(ANSI_A_E_PRIO, "");
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 | } |
| |
|
| 9869 | | | |
| 9870 | | | ELEM_OPT_TLV(ANSI_A_E_PACA_TS, "");
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 | } |
| |
|
| 9871 | | | |
| 9872 | | | (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. |
|
| 9873 | | | } |
| |