(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_rr.c) |
| |
| 7721 | | | dtap_rr_sys_info_4(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len) |
| 7722 | | | { |
| 7723 | | | guint32 curr_offset; |
| 7724 | | | guint32 consumed; |
| 7725 | | | guint curr_len; |
| 7726 | | | |
| 7727 | | | curr_offset = offset; |
| 7728 | | | curr_len = len; |
| 7729 | | | |
| 7730 | | | 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 | } |
| |
|
| 7731 | | | |
| 7732 | | | ELEM_MAND_V(GSM_A_PDU_TYPE_RR, DE_RR_CELL_SEL_PARAM);
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 | } |
| |
|
| 7733 | | | |
| 7734 | | | ELEM_MAND_V(GSM_A_PDU_TYPE_RR, DE_RR_RACH_CTRL_PARAM);
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 | } |
| |
|
| 7735 | | | |
| 7736 | | | ELEM_OPT_TV(0x64, GSM_A_PDU_TYPE_RR, DE_RR_CH_DSC, "CBCH Channel Description");
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_common.h |
| |
435 | #define ELEM_OPT_TV(EOT_iei, EOT_pdu_type, EOT_elem_idx, EOT_elem_name_addition) \ |
436 | {\ |
437 | if ((consumed = elem_tv(tvb, tree, (guint8) EOT_iei, EOT_pdu_type, EOT_elem_idx, curr_offset, EOT_elem_name_addition)) > 0) \ |
438 | { \ |
439 | curr_offset += consumed; \ |
440 | curr_len -= consumed; \ |
441 | } \ |
442 | if (curr_len <= 0) return; \ |
443 | } |
| |
|
| 7737 | | | |
| 7738 | | | ELEM_OPT_TV(0x72, GSM_A_PDU_TYPE_RR, DE_RR_MOB_ALL, "CBCH Mobile Allocation");
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_common.h |
| |
435 | #define ELEM_OPT_TV(EOT_iei, EOT_pdu_type, EOT_elem_idx, EOT_elem_name_addition) \ |
436 | {\ |
437 | if ((consumed = elem_tv(tvb, tree, (guint8) EOT_iei, EOT_pdu_type, EOT_elem_idx, curr_offset, EOT_elem_name_addition)) > 0) \ |
438 | { \ |
439 | curr_offset += consumed; \ |
440 | curr_len -= consumed; \ |
441 | } \ |
442 | if (curr_len <= 0) return; \ |
443 | } |
| |
|
| 7739 | | | |
| 7740 | | | ELEM_MAND_V(GSM_A_PDU_TYPE_RR, DE_RR_SI4_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. |
|
| 7741 | | | } |
| |