(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_rr.c) |
| |
| 7798 | | | dtap_rr_sys_info_6(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len) |
| 7799 | | | { |
| 7800 | | | guint32 curr_offset; |
| 7801 | | | guint32 consumed; |
| 7802 | | | guint curr_len; |
| 7803 | | | |
| 7804 | | | curr_offset = offset; |
| 7805 | | | curr_len = len; |
| 7806 | | | |
| 7807 | | | ELEM_MAND_V(GSM_A_PDU_TYPE_COMMON, DE_CELL_ID);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_common.h |
| |
493 | #define ELEM_MAND_V(EMV_pdu_type, EMV_elem_idx) \ |
494 | {\ |
495 | if ((consumed = elem_v(tvb, tree, EMV_pdu_type, EMV_elem_idx, curr_offset)) > 0) \ |
496 | { \ |
497 | curr_offset += consumed; \ |
498 | curr_len -= consumed; \ |
499 | } \ |
500 | else \ |
501 | { \ |
502 | /* Mandatory, but nothing we can do */ \ |
503 | } \ |
504 | if (curr_len <= 0) return; \ |
505 | } |
| |
|
| 7808 | | | |
| 7809 | | | ELEM_MAND_V(GSM_A_PDU_TYPE_COMMON, DE_LAI);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_common.h |
| |
493 | #define ELEM_MAND_V(EMV_pdu_type, EMV_elem_idx) \ |
494 | {\ |
495 | if ((consumed = elem_v(tvb, tree, EMV_pdu_type, EMV_elem_idx, curr_offset)) > 0) \ |
496 | { \ |
497 | curr_offset += consumed; \ |
498 | curr_len -= consumed; \ |
499 | } \ |
500 | else \ |
501 | { \ |
502 | /* Mandatory, but nothing we can do */ \ |
503 | } \ |
504 | if (curr_len <= 0) return; \ |
505 | } |
| |
|
| 7810 | | | |
| 7811 | | | ELEM_MAND_V(GSM_A_PDU_TYPE_RR, DE_RR_CELL_OPT_SACCH);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_common.h |
| |
493 | #define ELEM_MAND_V(EMV_pdu_type, EMV_elem_idx) \ |
494 | {\ |
495 | if ((consumed = elem_v(tvb, tree, EMV_pdu_type, EMV_elem_idx, curr_offset)) > 0) \ |
496 | { \ |
497 | curr_offset += consumed; \ |
498 | curr_len -= consumed; \ |
499 | } \ |
500 | else \ |
501 | { \ |
502 | /* Mandatory, but nothing we can do */ \ |
503 | } \ |
504 | if (curr_len <= 0) return; \ |
505 | } |
| |
|
| 7812 | | | |
| 7813 | | | ELEM_MAND_V(GSM_A_PDU_TYPE_RR, DE_RR_NCC_PERM);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_common.h |
| |
493 | #define ELEM_MAND_V(EMV_pdu_type, EMV_elem_idx) \ |
494 | {\ |
495 | if ((consumed = elem_v(tvb, tree, EMV_pdu_type, EMV_elem_idx, curr_offset)) > 0) \ |
496 | { \ |
497 | curr_offset += consumed; \ |
498 | curr_len -= consumed; \ |
499 | } \ |
500 | else \ |
501 | { \ |
502 | /* Mandatory, but nothing we can do */ \ |
503 | } \ |
504 | if (curr_len <= 0) return; \ |
505 | } |
| |
|
| 7814 | | | |
| 7815 | | | ELEM_MAND_V(GSM_A_PDU_TYPE_RR, DE_RR_SI6_REST_OCT);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_common.h |
| |
493 | #define ELEM_MAND_V(EMV_pdu_type, EMV_elem_idx) \ |
494 | {\ |
495 | if ((consumed = elem_v(tvb, tree, EMV_pdu_type, EMV_elem_idx, curr_offset)) > 0) \ |
496 | { \ |
497 | curr_offset += consumed; \ |
498 | curr_len -= consumed; \ |
499 | } \ |
500 | else \ |
501 | { \ |
502 | /* Mandatory, but nothing we can do */ \ |
503 | } \ |
504 | if (curr_len <= 0) return; \ |
505 | } |
| |
|
Unused Value
The value assigned to curr_offset is never subsequently used on any execution path. |
|
| 7816 | | | } |
| |