(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_rr.c) |
| |
| 6976 | | | dtap_rr_gprs_sus_req(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len) |
| 6977 | | | { |
| 6978 | | | guint32 curr_offset; |
| 6979 | | | guint32 consumed; |
| 6980 | | | guint curr_len; |
| 6981 | | | curr_offset = offset; |
| 6982 | | | curr_len = len; |
| 6983 | | | |
| 6984 | | | |
| 6985 | | | ELEM_MAND_V(GSM_A_PDU_TYPE_RR, DE_RR_TLLI);
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 | } |
| |
|
| 6986 | | | |
| 6987 | | | |
| 6988 | | | ELEM_MAND_V(GSM_A_PDU_TYPE_GM, DE_RAI);
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 | } |
| |
|
| 6989 | | | |
| 6990 | | | ELEM_MAND_V(GSM_A_PDU_TYPE_RR, DE_RR_SUS_CAU);
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 | } |
| |
|
| 6991 | | | |
| 6992 | | | |
| 6993 | | | ELEM_OPT_TV_SHORT(0x01,GSM_A_PDU_TYPE_RR, DE_RR_SERV_SUP,"");
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_common.h |
| |
445 | #define ELEM_OPT_TV_SHORT(EOT_iei, EOT_pdu_type, EOT_elem_idx, EOT_elem_name_addition) \ |
446 | {\ |
447 | if ((consumed = elem_tv_short(tvb, tree, EOT_iei, EOT_pdu_type, EOT_elem_idx, curr_offset, EOT_elem_name_addition)) > 0) \ |
448 | { \ |
449 | curr_offset += consumed; \ |
450 | curr_len -= consumed; \ |
451 | } \ |
452 | if (curr_len <= 0) return; \ |
453 | } |
| |
|
| 6994 | | | |
| 6995 | | | (len, curr_offset - offset);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_common.h |
| |
201 | #define (edc_len, edc_max_len) \ |
202 | if (((edc_len) > (edc_max_len))||lower_nibble) \ |
203 | { \ |
204 | proto_tree_add_text(tree, tvb, \ |
205 | curr_offset, (edc_len) - (edc_max_len), " Data"); \ |
206 | curr_offset += ((edc_len) - (edc_max_len)); \ |
207 | } |
| |
|
Unused Value
The value assigned to curr_offset is never subsequently used on any execution path. |
|
| 6996 | | | |
| 6997 | | | } |
| |